Setting a value for Checkbox celltype

Hi Clay, I''ve a column in my GDBG grid which is of type check box. Here while binding the data, a database column of type Varchar(1), which can have either ''Y'' or know ''N'' as values, as the source for that cell. That is, if the value is ''Y" i want the Checkbox to be checked and vice versa.. Plz help me out to sort this problem. Thanks, Thiagu.

2 Replies

AD Administrator Syncfusion Team September 8, 2004 06:01 AM UTC

You can try setting the checkbox options (GridBoundColumn.StyleInfo.CheckBoxOptions) for that column to use "Y" and "N". gbc.StyleInfo.CellType = "CheckBox"; gbc.StyleInfo.CheckBoxOptions.CheckedValue = "Y"; gbc.StyleInfo.CheckBoxOptions.UncheckedValue = "N";


TH Thiyagu September 8, 2004 08:44 AM UTC

Thanks a lot, Clay. This is what i exactly need.

Loader.
Up arrow icon