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.

Cell Validation

Thread ID:

Created:

Updated:

Platform:

Replies:

22871 Dec 27,2004 10:53 PM Dec 28,2004 06:35 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 27, 2004 10:53 PM

Hi, I need to validate the values entered in the cells of the gridcontrol. I am handling currentcellvalidating event for the same. My requirement is suppose the validation fails then the cell should contain the last valid value entered in it. e.g. Suppose for my cell only numeric values can be entered. Initially it has value 1. Then the user enters "abc" so this being invalid the cell should retain 1 as the cellvalue.

Administrator [Syncfusion]
Replied On December 28, 2004 06:35 PM

In CurrentCellValidating, you can get the original value using string s = this.grid[grid.CurrentCell.RowIndex, grid.CurrentCell.Colindex].Text; Then set this text into the renderer: grid.CurrentCell.Renderer.Control.Text = s;

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.

;