scrollable datagrid?

Results 1 to 2 of 2

Thread: scrollable datagrid?

  1. #1
    Join Date
    Dec 1969

    Default scrollable datagrid?

    I&#039;m trying to create a form with a databound datagrid of fixed width and height. The problem is the datagrid always sizes itself verticcaly to the number of rows it&#039;s bound to.<BR><BR>I want it to be 150px tall. If 5 rows fit in there, fine. But if I bind it and 10 rows are needed, then I want scrollbars to appear but the height to remain 150px. (I don&#039;t want to use paging for this site!). <BR><BR>Anyway, I found nothing on the datagrid itself to accomplish this so have tried to place it within another control such as a Panel or Gridlayout. Still no luck. <BR><BR>Anyone have any ideas how this can be accomplished?<BR><BR>Thanks!!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: scrollable datagrid?

    You could try wrapping the dataGrid with:<BR><BR>&#060;IFRAME STYLE="height:150px; width:100%;"&#062;<BR>&#060;!-- datagrid here --&#062;<BR>&#060;/IFRAME&#062;<BR><BR>But it would be IE4+ only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts