gridview checkedbox

Posted on 2009-04-30
Last Modified: 2013-12-17
I am trying to convert/set a column in my gridview to be a checkbox

i have tride looking things like


but this does not exist.

can anybody help.

I am not looking to do this in asp <ItemTemplate>

Question by:Mr_Shaw
    LVL 83

    Expert Comment

    If you are using a DataTable as the datasource of the grid, setting the column type in datatable to boolean automatically creates a checkbox column in the grid.

    Author Comment

    is this the same if i am using a dataset populated from a query
    LVL 83

    Expert Comment

    YES. Given that the type of the column is Boolean.
    LVL 83

    Accepted Solution

    Or Bit in SQL Server. If its not then you can manualy set it up.

    Author Closing Comment

    Spot on...

    I changed the SQL data type to a bit...

    this ensures that it will always be in the right format.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now