Tuesday, June 28, 2011
Monday, June 27, 2011
UltraGrid: Remove/Change selected Row color
If you want to remove selected row color(by default blue) and preserve your cell colors, follow this procedure.
Private Sub grid1_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles grid1.InitializeLayout
'Make selected row color to transparant
e.Layout.SelectionOverlayColor = SystemColors.Highlight
'remove slected and active appearance
With e.Layout.Bands(0)
.Override.SelectedAppearancesEnabled = DefaultableBoolean.False
.Override.ActiveAppearancesEnabled = DefaultableBoolean.False
End With
End Sub
Labels: Change, Color, Remove, SelectedRow, UltraWinGrid