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

CheckBoxAdv Binding & ReadOnly

Please, 1. Could some one tell me ho to bind a datacolumn in a datatable to a CheckBoxAdv ? 2. How to make a CheckBaoxAdv readonly ? 3. How to make a CheckBoxAdv not display True or False on its text, but only checked if true, and unchecked if false. Best regards, Jamâl-Dine DISSOU

2 Replies

AD Administrator Syncfusion Team March 31, 2005 05:44 PM

Hi Jamal, 1) You can databind a column to any of the value properties, such as StringValue or IntValue. this.checkBoxAdv1.DataBindings.Add("IntValue", dataTable1, "IntChecked"); 2) If you set Enabled to false, the CheckBoxAdv will show it''s value, but not allow the user to change it. 3) Are you asking how you can make the CheckBoxAdv show the CheckedString, UncheckedString, etc. in it''s Text? If so, the following code snippet demonstrates this: private void checkBoxAdv1_CheckStateChanged(object sender, System.EventArgs e) { this.checkBoxAdv1.Text = this.checkBoxAdv1.StringValue; } Please let me know if you have any further questions. Regards, Gregory Austin Syncfusion Inc.


PD Prof DISSOU Jamâl-Dine April 4, 2005 10:21 AM

Hi Gregory, It works. Thanks a lot Jamâl-Dine DISSOU

Loader.
Live Chat Icon For mobile
Up arrow icon