How to show healders for Ultragrid when there is no data?
If you bind the grid to a DataSource which has columns defined, but no rows, then the grid will display the column headers with no data - at least for the root level. There's no way to show headers for a child band without at least one parent row.
Hi Mike,
Is Band[0] - 'Band 0' considered the parent row? I am using the card view and the column (row headers) are not visible if no data is returned to the grid. All of my columns are defined under 'Band 0'. I'd like to show the headers regardless of data.
Thanks,
Michelle
Hi Michelle,
mmoritko said:Is Band[0] - 'Band 0' considered the parent row?
Band 0 is the root level, yes.
mmoritko said:I am using the card view and the column (row headers) are not visible if no data is returned to the grid. All of my columns are defined under 'Band 0'. I'd like to show the headers regardless of data.
It does not appear that there is any way to do this in CardView mode, though.
By default, each card shows it's own column headers. So if there are no cards, there are no column headers.
It's possible to place the headers on the left and display them only once instead of on each card by setting the band.CardSettings.Style to MergedLabels. But I tried this out and it still does not display the headers when there are no card.
So it looks like there is currently no way to do what you want here. I recommend that you Submit a feature request to Infragistics