Hi,I have searched the forums, but can't find the answer I am looking for.Is it possible to highlight the row and column headers when you select a cell in the grid, like it does in Excel? I don't want the row or the column itself to be highlighted, just the headers.Thanks,Campbell
Hello Campbell ,
Maybe one possible approach to acheve desired behavior could be if you are using both events ultraGrid1_BeforeCellActivate() and ultraGrid1_BeforeCellDeactivate() to set Header and RowSelector appearance. I made small sample for you. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample
Or you could just use:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.ActiveCellRowSelectorAppearance.BackColor = Color.Yellow; ov.ActiveCellColumnHeaderAppearance.BackColor = Color.Yellow; // You may have to turn off themes on the column headers. ov.HeaderAppearance.ThemedElementAlpha = Alpha.Transparent; }
Thanks guys, exactly what I was after.