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


Thread ID:





108867 May 16,2013 11:51 AM UTC May 26,2013 04:38 PM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
Tine Devolder
Asked On May 16, 2013 11:51 AM UTC

Can you put a validation on something like in my attachment


Tine Devolder
Replied On May 22, 2013 06:06 AM UTC

Someone ?

Tine Devolder
Replied On May 23, 2013 11:55 AM UTC


Rakesh D [Syncfusion]
Replied On May 26, 2013 04:38 PM UTC

Hi Tine,


Sorry for the delay in getting back to you.


Query: Validation during editing. ?


To achieve your requirement of performing the validation during editing we suggest you to use “CurrentRecordContextChange” event and check the validation for the column you would like to perform during “EndEditCalled” Action. If the validation fails set the e.Cancel to true and display the validation message. Please refer below code snippet for further details.




        protected void Page_Load(object sender, EventArgs e)


            this.GridGroupingControl2.CurrentRecordContextChange += new CurrentRecordContextChangeEventHandler(GridGroupingControl2_CurrentRecordContextChange);

                     . . .



        void GridGroupingControl2_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)


            // Raise when a row in the GridGroupingControl is updated.

            if (e.Action == CurrentRecordAction.EndEditCalled)



                object FieldIDValue = e.Record.GetRecord().GetValue("CustomerID");

                if (FieldIDValue == null)


                    e.Cancel = true;

                    Label1.Text = "Required Field Validator - Enter value for CustomerID";





For your convenience we have prepared a sample for the above scenario and it is attached below. Please refer to it.



Please let us know if you have any concerns.



Rakesh D

Validation GGC_ad77379.zip


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