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

Obtaining the new value of the cell on cellvalidating event

Thread ID:

Created:

Updated:

Platform:

Replies:

20237 Oct 13,2004 04:30 AM UTC Oct 14,2004 09:47 AM UTC WinForms 4
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On October 13, 2004 04:30 AM UTC

i tried ggc.Table.CurrentRecord.GetData("Col1") but i always get the content of the previous state. for instance, col1 is now ''abc''. i changed it to ''def''. a debug in validating event of the ggc, i will retrieve ''abc''. now i change ''def'' to ''efg'', i will get ''def'' in the validating event. i believe there is a buffer that hold the most current data. how do i get to access that? thanks

Administrator [Syncfusion]
Replied On October 13, 2004 05:16 AM UTC

Hi Lance, you need to get e.TableControl.CurrentCell.ControlText or e.TableControl.CurrentCell.ControlValue Stefan

Administrator [Syncfusion]
Replied On October 13, 2004 11:21 PM UTC

i tried but it appears that ControlText and ControlValue is not available in e.TableControl.CurrentCell. i am using GridGroupingControl.

Administrator [Syncfusion]
Replied On October 14, 2004 06:33 AM UTC

Oops, sorry. The CurrentCell has a Renderer property, and it is the renderer that has the ControlText property.
private void gridGroupingControl1_TableControlCurrentCellValidating(object sender, GridTableControlCancelEventArgs e)
{
	Console.WriteLine(e.TableControl.CurrentCell.Renderer.ControlText);
}

Administrator [Syncfusion]
Replied On October 14, 2004 09:47 AM UTC

cool! thanks!

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

;