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

currentrecordContextChanged

Thread ID:

Created:

Updated:

Platform:

Replies:

36161 Oct 21,2005 09:12 AM UTC Oct 21,2005 12:23 PM UTC WinForms 1
loading
Tags: GridControl
resmi
Asked On October 21, 2005 09:12 AM UTC

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

Administrator [Syncfusion]
Replied On 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;
	}
}

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

;