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. Image for the cookie policy date

currentrecordContextChanged

Hi In GGC,when CurrentRecordContextChange eevent is fired, how should I check whether the user was clicked on a blank row.ie I dont want to execute the rest of code if he clicks on a blank record

1 Reply

AD Administrator Syncfusion Team October 21, 2005 12:23 PM UTC

I am not sure what you mean by blank record. DO you mean the AddNewRow or do you mean an empty record in your data source? Also, normally in CurrentRecordContextChanged, you conditionally execute code based on the value of e.Action. Here is a snippet that picks out the AddNewRow when e.Action is EnterComplete.
if(e.Action == CurrentRecordAction.EnterRecordComplete)
{
	if(e.Record is AddNewRecord)
	{
		Console.WriteLine("AddNewRecord");
	}
	else
	{
		DataRowView drv = e.Record.GetData() as DataRowView;
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon