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
close icon

Changing Cell Back color for certain number...

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.

1 Reply

AD Administrator Syncfusion Team 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,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon