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

Changing Cell Back color for certain number...

Thread ID:





52137 Nov 22,2006 11:06 AM UTC Nov 22,2006 12:13 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 22, 2006 11:06 AM UTC


I have a GDBG grid and in one of the column, when the user is entering a number greater than 100, I want that cell's background color change to red. And when the user finished editing the cell, a popup box show warn the user that the number that they entered is > than 100. Notice that this popup should only show after the user has finished entered the number. How can we do that in a GDBG? We are using ver. 3.3
Many Thanks.

Administrator [Syncfusion]
Replied On November 22, 2006 12:13 PM UTC

Hi Kai,

You can handle the PrepareViewStyleInfo event and set the backcolor for the invalid cells. And also handle the CurrentcellValidating event to validate the cell. Please refer to the attached sample for implementation.

Sample : http://www.syncfusion.com/Support/user/uploads/GDBGValid_cc78f456.zip
KB on Grid validation : http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=340

Best Regards,


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