Srinivas Miriyala's Blog


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: , , , ,

2 Comments:

At August 27, 2012 at 2:42 AM , Blogger Unknown said...

Thanks, was helpful :)

 
At March 20, 2015 at 11:24 AM , Blogger TwistedMoonlight said...

Thanks this helped me too.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home