Q: checkbox in a datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Jones

    #1

    Q: checkbox in a datagrid

    Hi

    I have a datagrid which is has table styles associated with it. One column
    has boolean values in it. Rather than showing true or false in this column,
    I would like to display a checkbox; which will have the corresponding
    checked/unchecked value of the boolean.

    Can anybody show me the code I need to do this?

    Thanks in advance

    Geoff


  • Chris

    #2
    Re: Q: checkbox in a datagrid

    Geoff Jones wrote:[color=blue]
    > Hi
    >
    > I have a datagrid which is has table styles associated with it. One column
    > has boolean values in it. Rather than showing true or false in this column,
    > I would like to display a checkbox; which will have the corresponding
    > checked/unchecked value of the boolean.
    >
    > Can anybody show me the code I need to do this?
    >
    > Thanks in advance
    >
    > Geoff
    >
    >[/color]

    You need to assign a DataGridBoolCol umn to the tablestyle instead of a
    DataGridTextBox Column for the column you want to have a checkbox in.

    Chris

    Comment

    Working...