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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CheckBox Question

Thread ID:





11131 Feb 24,2004 01:46 PM UTC Feb 24,2004 06:49 PM UTC WinForms 1
Tags: Chart
Josh King
Asked On February 24, 2004 01:46 PM UTC

It''s not clear to me what the CheckBoxOptions.CheckedValue is supposed to do. Is that supposed to make the box be checked if it has a value? It would be much easier if there was a checked property (boolean) you could set on the cell.

Administrator [Syncfusion]
Replied On February 24, 2004 06:49 PM UTC

Hi Josh, The purpose of CheckBoxOptions.CheckedValue is to specify what value should be given in the Cell Value to make the check box checked (ie., either "1" or "true"). Say for example if you want "true" to be checked and "false" to be unchecked state. Here is the code snippet. this.gridControl1[1,1].CellType = "CheckBox"; this.gridControl1[1,1].CheckBoxOptions.CheckedValue = "true"; this.gridControl1[1,1].CheckBoxOptions.UncheckedValue = "false"; this.gridControl1[1,1].CellValueType = typeof(bool); this.gridControl1[1,1].CellValue = true; Some users want it to be 1 and 0 to be checked and unchecked values because their database might be providing either 1 or 0. So you can specify either way by setting the CheckedValue and UncheckedValue properties. Let us know if you need more information. Regards, Jay N


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

Live Chat Icon For mobile
Live Chat Icon