This is a migrated thread and some comments may be shown as answers.

Make bool fied as checkbox

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lakmal
Top achievements
Rank 2
lakmal asked on 30 Sep 2009, 05:30 PM
Hi,

I have boolean(bit)  field in my table. I want show check box to that boolean filed. HOw can i show check box for boolean filed without using template column?

lakmal

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Oct 2009, 04:11 AM
Hi,

You could use the GridCheckBoxColumn which displays a check box to represent a boolean value. Bind this column type to a boolean field by setting its DataField property.

ASPX:
 
 <telerik:GridCheckBoxColumn UniqueName="BoolField" HeaderText="CheckBox Column" 
 DataField="BoolField" AllowSorting="true"
</telerik:GridCheckBoxColumn>  

-Shinu.
Tags
Grid
Asked by
lakmal
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or