hi,
I have a grid with one row. each column is using a comboeditor as the editor control. When I select the row the backcolor is like a silver and the forecolor becomes white. I can't figure out where to control this appearance. Is it in one of the appearances in the override of the grid? The combo editor itself (which i am creating in code?) i have futzed with a bunch but can't get it to change.
Thanks,
Mel
Hi Mel,
melegant said:When I select the row with the row selector every cell in the grid shows silver back with white foreground.
Okay... now I am REALLY confused. Now you are saying that when you select one row, every cell in every row and every column of the entire grid turns silver?
If that's the case, then why did you mention the ComboEditor? Are you using the same ComboEditor for every column?
I don't see how selecting a single row could possibly affect every row in the grid grid, unless you are doing something very strange in our code. Are you loading a style library?
Sorry there is one other method where I am just adding items to vlColumns. I did not add it because i did not think it was relevant.
vlColumns = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
vlColumns.ValueList.ValueListItems.Add("<<Ignore>>", "<<Ignore>>");
When I select the row with the row selector every cell in the grid shows silver back with white foreground.
I reset the grid appearances before testing.
Here is the code
In Form Constuctor
Infragistics.Win.UltraWinEditors.UltraComboEditor vlColumns = null;
In Grid Init Event
e.Layout.Bands[0].ColHeadersVisible = false;
foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn c in e.Layout.Bands[0].Columns)
{
c.EditorComponent = vlColumns;c.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
}
When not an editor compenent the appearance works like normal, blue when selected with white foreground.
Thanks,Mel
Are you saying that when you select the row, only that one cell is changing color and not the entire row?
The appearance resolution process in the grid is quite staggeringly complicated and there are appearance properties on many different objects which could be affecting a cell. There's no way I could guess without seeing the code.
Have you tried removing the editor from the column to see if the editor is related to the issue at all?