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.


Thread ID:





36161 Oct 21,2005 05:12 AM Oct 21,2005 08:23 AM Windows Forms 1
Tags: GridControl
Asked On October 21, 2005 05:12 AM

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 08:23 AM

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)
		DataRowView drv = e.Record.GetData() as DataRowView;


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.