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

CurrentRecordContextChange event

Thread ID:

Created:

Updated:

Platform:

Replies:

30584 Jun 20,2005 09:01 PM UTC Jun 20,2005 10:35 PM UTC WinForms 1
loading
Tags: GridControl
Ross Prestmo
Asked On June 20, 2005 09:01 PM UTC

Hi, I have a grid grouping control, and I need to capture when the user moves to a different record. When this occurs, I need to use a value from the new record to do something else. Currently I am using the CurrentRecordContextChange event, which seems to work fine for detecting the change. The problem I''m having is that when I try to get one of the values from this new record, using ''gridGroupingControl1.Table.CurrentRecord.GetValue("COL1")'', none of the lines of code that follow this are executed. Is there a different/better way for me to do this? Thanks. Ross.

Administrator [Syncfusion]
Replied On June 20, 2005 10:35 PM UTC

Try using the e.Record to get the GridRecord in that event.
private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
	if(e.Action == CurrentRecordAction.EnterRecordComplete && e.Record is GridRecord)
	{
		GridRecord rec = e.Record as GridRecord;
		Console.WriteLine(rec.GetValue("Name"));
	}
}

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

;