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.

How to find out the value in the cell already exists?

Thread ID:

Created:

Updated:

Platform:

Replies:

4232 May 5,2003 01:57 AM May 5,2003 04:59 AM Windows Forms 1
loading
Tags: GridControl
Loga
Asked On May 5, 2003 01:57 AM

In GridDataBoundGrid ,When we add a value to a cell,Is there any way of locating whether the value being added is already displayed in the grid? This is like a validation which i wanted to do at the grid level. Is this possible?

Administrator [Syncfusion]
Replied On May 5, 2003 04:59 AM

You could handle then CurrentCellValidating event. In it, you can use code like: Dim cc as GridCurrentCell = Me.grid.CurrentCell Dim newValue as string = cc.Renderer.ControlText to get the new value. Once you have it, you would need to check whether this value is already in the grid. You could do this by looping through all the cells (or you could try using the GridFindReplaceDialogSink functionailty illustrated in the GridPad sample but looping will get the job done).

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.

;