Home Forums WinForms controls Xceed Grid for WinForms Coloring Rows based on conditions.. Reply To: Coloring Rows based on conditions..

User (Old forums)
Member
Post count: 23064

Hi,

I’m dealing with the same topic these days and I was wondering if you could help me with the following:

Beside custom coloring of non selected row in the grid, I have to have custom coloring of selected row in the grid as well. I have resolved this request by  changing SelectionBackColor and SelectionForeColor on grid on SelectedRowsChanged. But another problem appears if user selects more than one row, where all selected rows are the colored according to the last row in selection as this event fires on row group selection, not for each row in the selected group.

To further resolve this problem, I have tried to extend DataRow, but at the moment I’m having difficulties with making gridcontrol to accept this using only DataRowTemplate property.

 Thnx in advance,

Ogren
 

Imported from legacy forums. Posted by Ogren (had 1574 views)