find checkbox in the header of the radgrid

4 posts, 1 answers
  1. digish devassy
    digish devassy avatar
    18 posts
    Member since:
    Mar 2010

    Posted 05 Mar 2012 Link to this post

    Hi,

    Find checkbox in the header of the RadGrid. I am looking for c# code. I am having the button outside radgrid. I am looping through the dataitem to find other columns.

    I need to find am method to find the contorl in the header.

    Thanks in advance.


  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Mar 2012 Link to this post

    Hello,

    Try the following code.
    C#:
    protected void Button1_Click(object sender, EventArgs e)
    {
     foreach (GridHeaderItem item in rad2.MasterTableView.GetItems(GridItemType.Header))
     {
      CheckBox chk = (CheckBox)item.FindControl("CheckBox1");
     }
    }

    -Shinu.
  3. digish devassy
    digish devassy avatar
    18 posts
    Member since:
    Mar 2010

    Posted 05 Mar 2012 Link to this post

    HI Shinu,

    I had found the same answer. Thanks for coming to help.
  4. Angie
    Angie avatar
    1 posts
    Member since:
    May 2018

    Posted 08 May 2018 in reply to digish devassy Link to this post

    I need to find a checkbox in the header of the detail table of a RadGrid. But I can't to access in a HeaderItem and GridItem at the same time, I mean access to Header Item and try to find the Grid Item.  Add an image.
Back to Top