Hi,
is there any way how to hide a column headers of a grid? I don't want a description of a all columns. Thanks a lot,
Jan
looks like you do this at the band level on the grid.
Can be done via the designer:
Control settings -> ultragrid -> displaylayout then select the band you need to disable for...then ColHeadersVisible =false; (about 10 down)
code wise;
ultraGrid1.DisplayLayout.Bands[0].ColHeadersVisible = false;
where 0 is the index (or string) for your band.
This will disable for all columns within the band. Obviously if you have more than one band then you do it for each (if you want to do that).
Hope this helps.
Rich
what is the syntax for a column in a band to hide just that header?
Me.UltraGrid1.DisplayLayout.Bands(1).ColHeadersVisible = False - this is for all headers, so what if I want to hide column(2) in band 1.
Thanks
In the normal mode, you cannot hide a single header. You could do this using RowLayouts, though. Or if you just want to leave a gap where the header would have been, you could probably acheive what you want using a DrawFilter or CreationFilter.
Mike Saltzman said:You could do this using RowLayouts, though.
How?
Inqb said: You could do this using RowLayouts, though. How? [/quote] By setting RowLayoutColumnInfo.LabelPosition = LabelPosition.None;
You could do this using RowLayouts, though.
[/quote]
By setting RowLayoutColumnInfo.LabelPosition = LabelPosition.None;