Hi,
I couldn't find how to disable UltraGrid Header HotTrack, so I tried masking the Header HotTrack Boarder with the same color of the header background but I couldn't change it no matter what I did. its constantly gradiant blue with black . can you please help me disabling the Header HotTracking or understand how to change its color.
i tried the following :
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BorderColor = anycolor
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BorderColor2 = anycolor
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BorderColor3DBase = anycolor
it did not change. The only thing I could do is make it transparent but it still has some visual impact of hotTracking.
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BorderAlpha = Infragistics.Win.Alpha.Transparent;
furthermore, i made the hotTrack Background to me the same as the none-hotTrack background to mask, as much as possible, any hotTrack activity on the headers. but i will not need this if i will find a way to disable the headers hottracking completely
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BackColorAlpha = Infragistics.Win.Alpha.UseAlphaLevel;
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BackColor = ug.DisplayLayout.Bands[0].Override.HeaderAppearance.BackColor;
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.BackColor2 = ug.DisplayLayout.Bands[0].Override.HeaderAppearance.BackColor2;
ug.DisplayLayout.Bands[0].Override.HotTrackHeaderAppearance.ForeColor = ug.DisplayLayout.Bands[0].Override.HeaderAppearance.ForeColor;
Hello Sharik,
I am glad that we were able to assist you here.
If you have any other questions please do not hesitate to contact us.
Thanks Mike and Denko,
Infragistics support remains supurb!
One way would be if you set the BorderStyleHeader to Solid prior setting the HeaderStyle like:
ov.BorderStyleHeader = Infragistics.Win.UIElementBorderStyle.Solid;
Please feel free to let me know if you have any other questions with this matter.
great, that did help !!
how can i make the headers "flat" and not look as button?
I think what you are looking for is HeaderStyle:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.HeaderStyle = HeaderStyle.Standard; }