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

How can I on server side clear all check boxes.

Thread ID:





67292 Aug 13,2007 01:37 PM UTC Aug 21,2007 11:04 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Asked On August 13, 2007 01:37 PM UTC

How can I on server side clear all check boxes.
In check box template column which was created with the help of .

Melba Winshia [Syncfusion]
Replied On August 21, 2007 11:04 AM UTC


I apologize for the delay in responding.

If your intention is to clear all check boxes in server side, it can be achieved by using the OnCheckedChanged event.


protected void cbRowBtnTemplate_CheckedChanged(object sender, System.EventArgs e)
CheckBox checkbox = (CheckBox)sender;
GridRow gridrow = (GridRow)checkbox.Parent.Parent;
string identifyHeader = gridrow.DisplayElement.Info;
int indexOfHeader = identifyHeader.IndexOf(")") - identifyHeader.IndexOf("(") + 1;
string rowType = identifyHeader.Substring(identifyHeader.IndexOf("("), indexOfHeader);
if (rowType != "(GridColumnHeaderSection)")
string categoryName = gridrow.Record.GetValue("CategoryName").ToString();
if (checkbox != null)
if (checkbox.Checked == true)

if (checkbox.Checked == false)


Please refer the sample in the below link which illustrates the above.


In the above sample if you check the checkbox in header CategoryID all check boxes will be checked and if you clear the checkbox in the header, then all check boxes will be unchecked. If I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?



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