Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebGrid Questions...
Message
 
To
14/11/2002 10:43:31
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00722328
Message ID:
00722694
Views:
10
BOb;

Why not do a print screen and send it by e-mail? I am also behind a corporate firewall. It is a mixed blessing. :)

Tom


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