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.

Changing Cell Back color for certain number...

Thread ID:

Created:

Updated:

Platform:

Replies:

52137 Nov 22,2006 06:06 AM Nov 22,2006 07:13 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 22, 2006 06:06 AM

Hi,

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 07:13 AM

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,
Haneef

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.

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.

;