We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingControl show rows in different text colors

Hi, I want to change the forecolor of a hole row depending on the status of an order item (Payed, canceled or in production). Is there an event where I can set the fore color for the hole row, or have I set it cell by cell in QueryCellStyleInfo event. Thanks Guenter Schwaiger

2 Replies

AD Administrator Syncfusion Team June 29, 2004 11:09 AM

You could do that cell by cell with QueryCellStyleInfo. Another option is to change the appearance for the record, e.g. if (record is GridRecord) ((GridRecord) r).Appearance.AnyRecordFieldCell.BackColor = Color.Blue; else if (record is GridAddNewRecord) ((GridAddNewRecord) r).Appearance.AnyRecordFieldCell.BackColor = Color.Blue; An event where you could set the appearance of the record would be SourceListRecordChanging. Stefan


GS Günter Schwaiger June 30, 2004 12:45 AM

Thanks. SourceListRecordChanged does it fine. Guenter

Loader.
Live Chat Icon For mobile
Up arrow icon