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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top