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

  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. 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. Brian Henry

    boarders on data grid only on data items

    Brian Henry, Jul 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    486
    Brian Henry
    Jul 8, 2004
  2. Darrel
    Replies:
    1
    Views:
    448
    Scott Allen
    Nov 11, 2004
  3. SirPoonga
    Replies:
    2
    Views:
    1,019
    Ben Strackany
    Jan 7, 2005
  4. =?Utf-8?B?cG11ZA==?=

    Only Data Grid should be scrollable!

    =?Utf-8?B?cG11ZA==?=, Jan 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    699
    =?Utf-8?B?cG11ZA==?=
    Feb 1, 2005
  5. Alan Silver
    Replies:
    6
    Views:
    2,103
    Alan Silver
    Jul 28, 2005
  6. Hendri Irawan

    how to use check box in data grid

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

    Adding check box to data grid custome control.

    Arvind, Aug 11, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,526
    Arvind
    Aug 11, 2007
  8. PatLaf

    Adding check list box inside master detail web grid

    PatLaf, Feb 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    12
    Views:
    761
    Jeffrey Tan[MSFT]
    Feb 26, 2004
Loading...