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

Bound CheckBox CellType with datatable column value

Thread ID:

Created:

Updated:

Platform:

Replies:

71546 Feb 5,2008 01:36 PM UTC Feb 7,2008 04:30 AM UTC WinForms 2
loading
Tags: GridControl
harisan
Asked On February 5, 2008 01:36 PM UTC

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


Vinoth Kumar K [Syncfusion]
Replied On 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



harisan
Replied On February 7, 2008 04:30 AM UTC

Hello Vinoth,

Thanks, this works as expected.

Best Regards,
Harry


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.

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

;