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.

How can I uncheck the check box column (Column Header) programatically.

Thread ID:

Created:

Updated:

Platform:

Replies:

59732 Apr 20,2007 10:32 AM Apr 22,2007 05:19 PM Windows Forms 4
loading
Tags: GridControl
Pradeep Kumar
Asked On April 20, 2007 10:32 AM

Hi,

I have a DataBoundGrid which contains checkbox as one of the Header column. when i check that check box then all the check boxes in that column will be checked. similarly when i uncheck that, all the check boxes in that column will be unchecked.
The problem i got is when i check the check box in the header then all the check boxes will be checked it is o.k, but when the datasource of that grid is made null, all the data will be cleared, then also the check box in the column header is checked. How can i uncheck the checkbox through programatically.


-Thanks
Deepak

Raul
Replied On April 20, 2007 11:05 AM



>Hi,

I have a DataBoundGrid which contains checkbox as one of the Header column. when i check that check box then all the check boxes in that column will be checked. similarly when i uncheck that, all the check boxes in that column will be unchecked.
The problem i got is when i check the check box in the header then all the check boxes will be checked it is o.k, but when the datasource of that grid is made null, all the data will be cleared, then also the check box in the column header is checked. How can i uncheck the checkbox through programatically.


-Thanks
Deepak


Hey Deeepak,
I may have not have a solution to yr Question, however you have a soloution to my question..so kindly help..here it goes..
Could you help me out as to how to a add checkbox column along with a checkbox at the header...I bind my gridBoundDataGrid using a dataset at runtime..

haneefm [Syncfusion]
Replied On April 20, 2007 02:17 PM

Hi,

Please refer to the following KB article which explains how to have checkbox in the header cell of GridControl and GridDataBoundGrid
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=232

Here is a minimal sample that shows you "How can i uncheck the checkbox through programatically?"
CB_in_Header_CS.zip

Best regards,
Haneef

Pradeep Kumar
Replied On April 21, 2007 01:41 AM

Hi,
Thanks for your samples. The sample works fine to check or uncheck the checkboxes dynamically which are in the grid. Here my requirement is how can i uncheck the check box which is defined as a column header dynamicaly. which means i want to change the column header value dyanamically.

Thanks
-Deepak

Administrator [Syncfusion]
Replied On April 22, 2007 05:19 PM

Here is that sample modified to allow you to change the CheckBoxValue for the header cell in the GridDataBoundGrid from a button handler.


CB_in_Header_CS.zip

CONFIRMATION

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.

;