Question : the GridView

I'm using the GrdiView.  I have AutoGenerateColumns = True.   The data for the grid comes from a datatable.   When there is no data, the grid does not appear at all.   Is there a way to control this?  I would like the grid to always display.  When there is no data, I would like the grid to show no rows, but with the column headers still visible

Answer : the GridView

To handle that you can manipulate the datatable

when there is no record in the datatable, you can programatically add the dummy row with the blank values and assign the same to griview
Random Solutions  
 
programming4us programming4us