Home › Forums › WinForms controls › Xceed Grid for WinForms › How to change color of selected rows in child grids?
I have tried numerous things to set the background color of selected rows but nothing seems to work…
Am i missing something?
Private Sub GridControl1_InitializingDetailGrid(ByVal sender As Object, ByVal e As Xceed.Grid.InitializingDetailGridEventArgs) Handles GridControl1.InitializingDetailGrid
On Error Resume Next
e.Grid.BeginInit()e.Grid.SelectionVisualStyle.ForeColor = Color.Whitee.Grid.SelectionVisualStyle.BackColor = Color.DarkBluee.Grid.DataSource = DS.Tables(parentTaskName)e.Grid.SelectionBackColor = Color.DarkBluee.Grid.SelectionForeColor = Color.Whitee.Grid.ReadOnly = Truee.Grid.EndInit()
Imported from legacy forums. Posted by S. (had 1113 views)
On SelectionVisualStyle, you must set OverrideUIStyle to True to indicate that the theme must not take its look, but instead let your settings go through.
Imported from legacy forums. Posted by Diane [Xceed] (had 1405 views)