Hi,
is there a way to exclude a single column from the full row selection highlighting.
The cells of the column should just not be highlighted when a row is selected. Other columns is the selected row should be highlighted.
Thanx
I tried this out and it works fine for me. Maybe the row is not selected, but is active. Try setting the ActiveAppearance on the cell, as well.
Hi Mike,
that doesn't seem to work. I'm using 2011.1
This is my code in the
private void myGrid_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
{
ListWorkUnit listWorkUnit = (ListWorkUnit)e.Row.ListObject; e.Row.Cells["Comment"].Appearance.BackColor = String.IsNullOrEmpty(listWorkUnit.Comment2) ? Color.Empty : Color.Red;e.Row.Cells["Comment"].SelectedAppearance = e.Row.Cells["Comment"].Appearance;
}
The cell is red (background) if there is a Comment. If I select the row the cell gets blue (selection color).
If you have the latest version (or a fairly recent version) of NetAdvantage, then when you set the Appearance on the cell, you can also set the SelectedAppearance on the cell to the same appearance.
That way the cell does not change it's appearance when it is selected.