>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement