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. Advertising

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. tshad
    Replies:
    0
    Views:
    538
    tshad
    Apr 15, 2005
  2. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,408
    ThunderMusic
    Jan 25, 2006
  3. =?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:
    834
    David Wier
    Oct 6, 2006
  4. Jason Huang
    Replies:
    0
    Views:
    561
    Jason Huang
    Jun 29, 2007
  5. Joey Pang
    Replies:
    4
    Views:
    527
    Joey Pang
    Jun 13, 2005
Loading...

Share This Page