Make bool fied as checkbox

2 posts, 0 answers
  1. lakmal
    lakmal avatar
    76 posts
    Member since:
    Jun 2009

    Posted 30 Sep 2009 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top