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:





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

Can you put a validation on something like in my attachment


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

Someone ?

Tine Devolder
Replied On May 23, 2013 07:55 AM


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

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.

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.