I have a grid where the headers only inform the user what the column content is.
There is NO function I want to offer. No sorting, no column selecting, nothing.
I can sort of fool it by selecting the HeaderClickAction.ExternalSortSingle for example.
But then I still get a blue box around the headers on mouseover, which misleads the user to thinking something should happen if clicked.
I'm hoping there just something simple, like HeaderClickAction.DoNothing.
Alternatively, can I hide the column headers entirely? (in my particular case, there is only one hidden and one visible column anyway)
Hello Kennethknoepfli,
I am glad that I was able to assist you.
Please do not hesitate to contact us if you have any other questions in the future.
Yes, that works. Thank you very much!
Hello kennethknoepfli,
I have looked through this forum thread and you could do what you are looking for by setting the following properties of your UltraGrid:
ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard; ultraGrid1.DisplayLayout.Bands[0].Columns[Your Column Key].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
I would prefer to use the InitializeLayout event of the UltraGrid and use the very same approach there:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard; e.Layout.Bands[0].Columns[Your Column Key].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled; }Please feel free to let us know if you need any other assistance with this matter.
Which of the properties in HotTrackHeaderAppearance affects the blue border?
I have tried pretty much all, tried different shades of gray (or setting Alpha to transparent).
But I am still getting a blue border.
Can't hot tracking just be turned off? That would be easier.
My scenario is I want the column headers to show the column name. That's all. They should do nothing at all.
if you are talking about mouseover appearance, then you could change it using HotTrackHeaderAppearance property
Let me know if you think that I misunderstand your scenario or if you have any questions.
Regards