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.

CheckBox Question

Thread ID:

Created:

Updated:

Platform:

Replies:

11131 Feb 24,2004 08:46 AM Feb 24,2004 01:49 PM Windows Forms 1
loading
Tags: Chart
Josh King
Asked On February 24, 2004 08:46 AM

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 01:49 PM

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

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.

;