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

GGC validation

Thread ID:





57380 Mar 2,2007 03:11 PM UTC Mar 2,2007 10:37 PM UTC WinForms 1
Tags: GridControl
Asked On March 2, 2007 03:11 PM UTC


I'm using event CurrentRecordContextChange to save data in my table.

Before saving data I want to check if all not null columns have some value inserted. If one or more not null columns are empty user should get message box with an error and option to go back and insert empty values or to undo all changes in current record.

GGC uses DataTable properties to determine not null columns.

I would appreciate sample of this behavior or a code snippet.

Thanks in advance.

Administrator [Syncfusion]
Replied On March 2, 2007 10:37 PM UTC

Hi Srdjan,

You can try the below code snippet and let me know if this helps.

private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
if( e.Action == Syncfusion.Grouping.CurrentRecordAction.EndEditCalled)
DataRowView dr = e.Record.GetData() as DataRowView;
if( dr.Row != null)
catch(Exception ex)
DialogResult result = MessageBox.Show(ex.Message,"SaveRecord",MessageBoxButtons.OKCancel );
e.Cancel = true;
if( result == DialogResult.OK )

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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