Bound CheckBox CellType with datatable column value

Hello,

How to bound this kind of CellType with value from dataset table.column. (Value=0 unchecked, Value>1 checked)
ggc.TableDescriptor.Columns("Type").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox

Thanks,
Harry


2 Replies

VK Vinoth Kumar K Syncfusion Team February 5, 2008 08:18 PM UTC

Hi Harry,

Thanks for using Syncfusion Products.

You can set the cellType of a particular column to CheckBox and also need to set the CheckBoxOptions property of the CheckBoxCell. CheckBoxOptions.CheckedValue is used to specify what value should be given in the CellValue to make the checkbox checked (ie., either "1" or "true"). Say for example, if you want "true" to be checked and "false" to be unchecked state.

Please refer to the sample given below which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Windows/F71546/main.htm

Please refer to the following KnowledgeBase(KB) articles for more details about CheckBoxOption:
What is the purpose of checkboxoptions property and how do I set it?

Please let me know if you have any questions.

Regards,
Vinoth




HA harisan February 7, 2008 04:30 AM UTC

Hello Vinoth,

Thanks, this works as expected.

Best Regards,
Harry


Loader.
Up arrow icon