checkbox in datagrid

Discussion in 'ASP .Net Datagrid Control' started by pleaseexplaintome@yahoo.com, Aug 11, 2006.

  1. Guest

    hello, I am using C#. How do I bind a checkbox in a asp.net webform
    datagrid? the oracle database has a number field where I want any non
    zero value to be true, 0 is false.

    I have created a template column. when I try:
    <asp:CheckBox ID="chk" Runat="server"
    Checked='<%#DataBinder.Eval(Container.DataItem, "duplicate")%>'/> it
    errors out with "specified cast is not valid"

    thanks
     
    , Aug 11, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Amar
    Replies:
    0
    Views:
    648
  2. tshad
    Replies:
    0
    Views:
    732
    tshad
    Apr 15, 2005
  3. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,561
    ThunderMusic
    Jan 25, 2006
  4. =?Utf-8?B?RG90TmV0RGV2?=

    DataGrid and embeded Checkbox..How to find if checkbox clicked

    =?Utf-8?B?RG90TmV0RGV2?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,013
    David Wier
    Oct 6, 2006
  5. Jason Huang
    Replies:
    0
    Views:
    702
    Jason Huang
    Jun 29, 2007
  6. Amar
    Replies:
    0
    Views:
    307
  7. Joey Pang
    Replies:
    4
    Views:
    828
    Joey Pang
    Jun 13, 2005
  8. Imran Aziz

    checkbox value attribute in checkbox control ?

    Imran Aziz, Aug 6, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    343
    Imran Aziz
    Aug 8, 2005
Loading...