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.


Thread ID:





78175 Dec 2,2008 09:51 AM Dec 3,2008 12:26 AM Windows Forms 1
Tags: GridControl
Markus Persson
Asked On December 2, 2008 09:51 AM

I created a new windows application, dropped a GridControl on the form. In the properties for this GridControl so did I change ActivateCurrentCellBehavior to DblClickOnCell, and I changed Dock to Fill. Then I created an event for SaveCellFormattedText for this grid. This is all I did. The entire code:

Public Class Form1
Private Sub GridControl1_SaveCellFormattedText(ByVal sender As System.Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridCellTextEventArgs) Handles GridControl1.SaveCellFormattedText

End Sub
End Class

Now, I did a breakpoint on this event and started my application. Typed something into a cell on my grid and pressed enter, and noticed that this event got called twice in a row. Why? I did only type text in one cell.

I'm using Syncfusion and VS2005.

Jisha Joy [Syncfusion]
Replied On December 3, 2008 12:26 AM

Hi Markus,

This is by design. The cell renderer class internally calls style.FormattedText = ControlText to determine the underlying cell value for the display text. This happens before the CurrentCellValidate event is raised and ensures the ControlValue for the renderer is up to date.

Please see the follwing forum thread:




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.