This is a migrated thread and some comments may be shown as answers.

How to get Header Template Control id in RadGrid_DataBound event?

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guruvu
Top achievements
Rank 1
Guruvu asked on 19 Jan 2011, 11:41 AM
Hi,

In my RadGrid HeaderTemplate one checkBox control is there.My requirement is i need to get this checkBox control id RadGrid_DataBound event.

How can i achieve this requirement.Please help me...

Thanks in advance...

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jan 2011, 11:59 AM
Hello,

The following code will help you in this.

Code:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridHeaderItem)
     {
         GridHeaderItem edititem = (GridHeaderItem)e.Item;
         CheckBox chk = (CheckBox)edititem.FindControl("CheckBox1");
         // chk.Enabled = false;          
    }
}




-Shinu.
Tags
Grid
Asked by
Guruvu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or