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. Image for the cookie policy date

set the value of checkbox programmatically

hi to all, i''m working on gridControl, how can i get and set the value of a checkbox cell best regards and thanks in advance fady

2 Replies

AD Administrator Syncfusion Team April 20, 2006 12:18 PM UTC

Hi Fady, Could you try this code to set the value of the CheckBox celltype in a gridcontrol.Here is a code snippet //Form Load this.gridControl1[2,2].CellType = "CheckBox"; this.gridControl1[2,2].CheckBoxOptions.CheckedValue = true.ToString(); this.gridControl1[2,2].CheckBoxOptions.UncheckedValue = false.ToString(); //Button Click this.gridControl1[2,2].CellValue = true; //For Checked the checkbox this.gridControl1[2,2].CellValue = false; //For unChecked the checkbox Here is a sample. http://www.syncfusion.com/Support/user/uploads/gc123_b1d25bca.zip Let us know if this helps Regards, Haneef


FS Fady Sayegh April 20, 2006 12:45 PM UTC

thanks Haneef it works fady

Loader.
Live Chat Icon For mobile
Up arrow icon