Displaying Empty DataGrids

  • Thread starter Thread starter Tom Jorgenson
  • Start date Start date
T

Tom Jorgenson

Is there a way to have a DataGrid with no rows display its header
information rather than just disappearing?

It would seem like a simple enough thing to do, but so far I haven't found a
way to make this happen.
 
Hmm... sounds fishy. If you bind a DataTable with 0 rows to a datagrid - it will still show the headers (just 0 rows)

if you set the Grid's datasource = nothing and then bind, then the whole thing disappears

Are you sure that the Show Header attribute is true, or that you're binding it? Does the grid work if the datatable contains > 0 rows

Tim Stal


----- Tom Jorgenson wrote: ----

Is there a way to have a DataGrid with no rows display its heade
information rather than just disappearing

It would seem like a simple enough thing to do, but so far I haven't found
way to make this happen
 
Back
Top