img 1 :http://www.ilgisoft.com/+/inf1.png
img 2 :http://www.ilgisoft.com/+/inf2.png
Hey. Im using wingrid but i cant disable selected row background color(2. img) I filling rows with my color. But when user click any row, back color change to selected color. How can i do this, can i disable selected color change ?
thanks.
Hello,
I believe that Mike has provided the right link to do this.
Please try using the following code in the InitializeLayout event:
e.Layout.Override.ActiveAppearancesEnabled = Infragistics.Win.DefaultableBoolean.False;
www.ilgisoft.com/+/inf3.png
i mean when user click cell, so grid not fill selected color to all row(2 in pic). Only "selectandedit" in selected cell i want ( 1 in pic)
That seems very strange. You want to allow selection of rows but not allow the user to see which rows are selected?
How will the user know when a row is selected?
thans for replies.I dont want disable row selection, only want user can't see selected row color, grid selected row back color not cancel my row back colors. because row selected or not, i have to show my backcolors in rows.
Hi,
How you disable this depends on where the color is coming from and what you want the selected rows to look like.
Do you want the user to be able to select rows at all? If so, how will they know which rows are selected if you don't change the color?
If you want to just turn off selection, then this is very easy:
this.ultraGrid1.DisplayLayout.Override.SelectTypeRow = SelectType.None;
But are you sure the row is selected and not active? If it's Active, the code above will have no effect, and what you really want is this:
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.