scrollable datagrid

Is it possible doing a vertical scrollable datagrid How

I won't page!!!

Thx




Answer this question

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

    sure Visual Studio 2003 tells me that there isn't...i'm writing in a web user control

  • soc_p

    Yes, webform related...i have datagrid in a panel but panel has not scroll property in web application...

    Code:

    <asp:panel.........>

    <p>

    <asp:panel.......>

    <asp:datagrid ...........>

    <asp:columns>

    ...



  • j_reins

    1. Give the div a 100% width to.
    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

    Oke, so placing it in a div solved your problem, only you needed to set the overflow-y to scroll.

    This is browser indipended, scroll="true" isn't i read on a newsgroep.

  • dart_board

    Give it a try! First try it, then screem here when it doesn't work.


  • Andr&amp;#233; Scaravelli

    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.

    I hope you understand it now.


  • mcory1

    Put it in a <div> so it will be:


    <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.



  • scrollable datagrid