Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebGrid Questions...
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00722328
Message ID:
00722690
Views:
13
>I haven't seen this behavior before. Are you doing anything different with your WebForm DataGrid?

I don't think so. It is pretty standard. I used the property builder to build it. The only code I have is in the page load which sets the controlsource to a dataset and calls DataBind().

Thanks for the help. I wish I could expose this to the web so you could see it, but I am behind a corporate firewall.

BOb


>
>>>The DataGrid will always show just 5 rows because it does not prefetch the data during design time to display. The design time control is just a placeholder. At runtime the grid will expand to the size of the contained data. That is why you can't show just the header. VS .NET doesn't know your datatable is empty.
>>>
>>
>>Umm... ok, it sounds like I didn't communicate my problem fully. I understand the design time grid is just psuedo rows. My problem is at run time. In the case that the DataSet I am binding the grid to has 0 rows, only the header shows on the page, which is what I want. The problem is, the height of the header, is the size of the design time grid. I only want the header to be the hight of a single row. If there is one row, the header and row are both the expected height.
>>
>>
>>BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform