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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





4232 May 5,2003 05:57 AM UTC May 5,2003 08:59 AM UTC WinForms 1
Tags: GridControl
Asked On May 5, 2003 05:57 AM UTC

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 08:59 AM UTC

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).


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

Live Chat Icon For mobile
Live Chat Icon