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

set the value of checkbox programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

43319 Apr 20,2006 12:03 PM UTC Apr 20,2006 12:45 PM UTC WinForms 2
loading
Tags: GridControl
Fady Sayegh
Asked On April 20, 2006 12:03 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Fady Sayegh
Replied On April 20, 2006 12:45 PM UTC

thanks Haneef it works fady

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;