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

Row Color Change based on field value

Thread ID:

Created:

Updated:

Platform:

Replies:

16583 Jul 20,2004 11:29 AM UTC Jul 20,2004 12:56 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On July 20, 2004 11:29 AM UTC

How to change the row color based on some field. for example, when i have the row with the deleted field status true, i have to show that row in red color. Is it possible in GridDataboundGrid? Can you help on this? thanks M. Rabeek

Administrator [Syncfusion]
Replied On July 20, 2004 12:56 PM UTC

You have to handle PrepareviewStyleInfo to do this. Here is a KB link that discusses this. http://www.syncfusion.com/Support/article.aspx?id=561 Instead of just setting it when e.RowIndex == 8 as in the KB sample code, you would test your value at that point, and conditionally set the color depending upon the value.

CONFIRMATION

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.

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

;