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.

Obtaining the new value of the cell on cellvalidating event

Thread ID:

Created:

Updated:

Platform:

Replies:

20237 Oct 13,2004 12:30 AM Oct 14,2004 05:47 AM Windows Forms 4
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On October 13, 2004 12:30 AM

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 01:16 AM

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

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

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 02:33 AM

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 05:47 AM

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.

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.

;