I’m just starting to use the ASP.NET GridView control.
I was thinking of adding an "Add New Row" Button to the Footer to add a new DataRow to the GridView.
Initially, I want the grid to be empty, with only a footer row displayed. however, if there are no data rows, the whole GridView doesn’t appear and there is no way to add first row since the footer also is not shown.
Is there a way to display a GridView with only a footer and no data rows or do I have to resort to a kludge?
Have you looked into subclassing the GridView and overriding its CreateChildControls method (and possibly some render methods as well if required)?
You may be able to alter its default behaviour. If this is possible, it would be less kludgy than adding empty rows.