how to selecet check box in the data grid ?? only one check box

Discussion in 'ASP .Net' started by mit, Jan 25, 2006.

  1. mit

    mit Guest

    mit, Jan 25, 2006
    #1
    1. Advertising

  2. CheckBox chk;
    for (iItem = 0; iItem < dg.Items.Count; iItem++)
    {
    chk = dg.Items[iItem].FindControl("MyCheckBoxID") as CheckBox;
    if (chk != null)
    {
    chk.Checked = true;
    }
    }

    HTH,
    RP

    "mit" <> wrote in message
    news:...
    >
    >
    Ramu Pulipati, Jan 25, 2006
    #2
    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. Brian Henry

    boarders on data grid only on data items

    Brian Henry, Jul 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    382
    Brian Henry
    Jul 8, 2004
  2. Darrel
    Replies:
    1
    Views:
    353
    Scott Allen
    Nov 11, 2004
  3. Alan Silver
    Replies:
    6
    Views:
    1,879
    Alan Silver
    Jul 28, 2005
  4. Hendri Irawan

    how to use check box in data grid

    Hendri Irawan, Apr 1, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    223
    Elton Wang
    Apr 1, 2005
  5. Arvind

    Adding check box to data grid custome control.

    Arvind, Aug 11, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,294
    Arvind
    Aug 11, 2007
Loading...

Share This Page