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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Query Builder

Thread ID:





35282 Sep 27,2005 03:47 PM UTC Sep 27,2005 10:03 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On September 27, 2005 03:47 PM UTC

Is it possible to represent a custom coloring feature based on a particular expression. Similar to generic filter feature provided by GDBG. Recently, our users came out with a list of requirement where most of them were related to individual cell coloring that are driven based on simple logical condition. We can certainly hard code individual cell color settings, but if there a generic feature then it would have given complete libery to come out with their own color codes based on their custom rules and not dependent on developers.

Administrator [Syncfusion]
Replied On September 27, 2005 10:03 PM UTC

There is no built in support for coloring individual cells according to some kind of condition in a GriddataBoundGrid. To color individual cells in a GridDataBoundGrid, you must use the PrepareViewStyleInfo event. There you can use e.RowIndex, e.ColIndex and e.Style to decide what value to set to e.Style.BackColor. So, you could evaluate some user specified condition at this point to conditionally color a cell in PrepareViewStyleInfo.


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