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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl show rows in different text colors

Thread ID:





15845 Jun 29,2004 07:12 AM UTC Jun 30,2004 04:45 AM UTC WinForms 2
Tags: Grouping
Günter Schwaiger
Asked On June 29, 2004 07:12 AM UTC

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

Administrator [Syncfusion]
Replied On June 29, 2004 03:09 PM UTC

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

Günter Schwaiger
Replied On June 30, 2004 04:45 AM UTC

Thanks. SourceListRecordChanged does it fine. Guenter


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon