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.
Syncfusion Feedback

CurrentCellEditingComplete

Thread ID:

Created:

Updated:

Platform:

Replies:

1015 Sep 13,2002 06:52 AM UTC Sep 13,2002 12:57 PM UTC Windows Forms 1
loading
Tags: GridControl
Sebastien Lange
Asked On September 13, 2002 06:52 AM UTC

Hi, I want to know when a user validate a cell the first time with a text!="". example: a cell is empty and I fill it with 'Hello World' I do not see which event to use. CurrentCellEditingComplete does not inform you of the old value (was it ""?), neither CurrentCellChanged... The only event that could fit is CurrentCellValidateString but it is reached each time you enter a key, not after validation (enter...) Is there an easy way to do it? Sebastien

Clay Burch [Syncfusion]
Replied On September 13, 2002 12:57 PM UTC

> Hi, > > I want to know when a user validate a cell the first time with a text!="". > example: a cell is empty and I fill it with 'Hello World' > I do not see which event to use. > CurrentCellEditingComplete does not inform you of the old value (was it ""?), neither CurrentCellChanged... > The only event that could fit is CurrentCellValidateString but it is reached each time you enter a key, not after validation (enter...) > Is there an easy way to do it? > > Sebastien How about the CurrentCellValidating event? You can get the new text from the ControlText property of the CurrentCell.Renderer, and you can get the old text just by indexing the grid object with the currentcell row and col.
Private Sub GridControl1_CurrentCellValidating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles GridControl1.CurrentCellValidating
	Dim cc As GridCurrentCell = GridControl1.CurrentCell
	Console.WriteLine(cc.Renderer.ControlText + "**" + Me.GridControl1(cc.RowIndex, cc.ColIndex).Text)
    End Sub

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.

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

;