1.i have set datagrid width to 100%, ihave to remove it
2.visual studio tell me that that's not right place where put a "div". I solved it (because it was in <P> but now it said that div has not scroll property!
The div doesn't have a Width attribute. You must use CSS for that, that is why you need to specify the Width and Height in the Style attribute.
You place a asp:DataGrid withing the div, when the asp:DataGrid is greater then the div where it is in, scrollbars are shown when the sroll="true" attribute is set within the div.
When you put more rows in a DataGrid that is gets outside of his visable bounds a scrollbar is automaticly shown.
Edit I noticed that you last questions on the forum are webforms related, so when you want a scrollbar in a asp:DataGrid then just put the asp:DataGrid in a <div> or in a panel or something. Don't forget to set scroll = true.
scrollable datagrid
noPCtoday
obviously i try before...and it doesn't work...
it says also width is not allowed in div... and even if i ignore it, i have not the scroll bar
cjsoftuk
i understand but i can't do it...maybe it's some 100%...
i have:
<panel heigth =100%>
<panel1>
<div scroll="true">
<datagrid>
<button>
</panel1>
<panel2>...</panel2>
Khaja Imtiyaz
soc_p
Yes, webform related...i have datagrid in a panel but panel has not scroll property in web application...
Code:
j_reins
2. Just ignore the VS warning.
A div got a scroll attribute:
<div scroll="true"> ... </div>
Duddy
Thx but it doen0s work!
i have 2 problem:
1.i have set datagrid width to 100%, ihave to remove it
2.visual studio tell me that that's not right place where put a "div". I solved it (because it was in <P> but now it said that div has not scroll property!
lukha
Read post before:
i solved in this way:
<div style="overflow-y:scroll; height: 100px">Joel Holder
This is browser indipended, scroll="true" isn't i read on a newsgroep.
dart_board
Andr&#233; Scaravelli
You place a asp:DataGrid withing the div, when the asp:DataGrid is greater then the div where it is in, scrollbars are shown when the sroll="true" attribute is set within the div.
I hope you understand it now.
mcory1
<div scroll=true style="width: 100px; height: 100px">
<asp:datagrid.... >
</asl:datagrid>
</div>
TheLe
When you put more rows in a DataGrid that is gets outside of his visable bounds a scrollbar is automaticly shown.
Edit
I noticed that you last questions on the forum are webforms related, so when you want a scrollbar in a asp:DataGrid then just put the asp:DataGrid in a <div> or in a panel or something. Don't forget to set scroll = true.