I haven't seen this behavior before. Are you doing anything different with your WebForm DataGrid?
>>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
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi