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

User (Old forums)
Post count: 23064


Just to report that I’ve resolved the problem:

1. The problem with extending the DataRow was that I’ve missed to override CreateInstance method and return an instace of the extended data row class.

2. Method PaintBackground should be extended and custom selection coloring can be done there (this.GridControl.SelectionBackColor and this.GridControl.SelectionForeColor). By doing this, each selected row can have its specific color. Good thing about this is that you’ll have the SourceObject property (object on which the row is bound to) and cell content available.



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