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
close icon

Checkbox problem

Hi,
I have a problem with the checkbox cell type. I have created a gridgrouping grid and associated it with a sqldatasource. After i have declared a cell of this grid as celltype="Checkbox". Here is the definition:

Width="100">





The records are correctly returned from the datasource but the values linked to the checkbox cell are displayed as simple values (0 or 1). The checkbox image does never appears both in design mode or during the excution of the page.
I have tested another configuration for the cell with the same results:


CellValueType="System.Int32" CheckBoxOptions-CheckedValue="1"
CheckBoxOptions-UncheckedValue="0" />


Is there anything wrong?
My Syncfusion version is: Version=7.203.0.37

Regards
Maurizio Selvaggini

1 Reply

BM Bharath M Syncfusion Team December 24, 2009 05:20 AM UTC

Hi Maurizio,

Thank you for your interest in Syncfusion products.

We regret for inconvenience caused. We suggest you to bind the Boolean datatype for CheckBox column. If you need to bind a Integer datatype, we suggest you to update CheckBox value in QueryCellStyleInfo event handler.

For your information, CheckBox cell type will show CheckBox only when it enters into Edit mode. To get it in ReadOnly mode, we suggest you to use ItemTemplate for that particular column and Update the ItemTemplate's values from QueryCellStyleInfo event handler.

Let me know if you have any concerns.

Regards,
Bharath .M

Loader.
Live Chat Icon For mobile
Up arrow icon