Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Setting Column CellAppearance stops HotTrack Working
posted

Firstly I am using AppStylist setting the Base->Row  HotTracked Background Color to PaleGreen.

On my Windows Form the grid appears as designed in the AppStylist with the HotTrack on rows showing Pale Green. However when I change the color of some columns as below the CellAppearance stops the HotTrack working for the columns where the color has been changed. The other columns continue to display the HotTrack correctly.

gridMain.DisplayLayout.Bands[0].Columns["colX"].CellAppearance.BackColor = System.Drawing.Color.Yellow;

Adding the line of code below after changing the column's cell appearances makes no difference.

gridMain.DisplayLayout.Bands[0].Override.HotTrackRowAppearance.BackColor = Color.Red;

Why does this happen and what would be the correct method to change the back color of some columns and still allow the HotTrack to work for all columns?

Parents Reply Children
No Data