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

header to grid expand column

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 07 Dec 2012, 08:48 AM
How to give header to grid expand column.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Dec 2012, 08:55 AM
Hi,

Try the following code snippet to achieve your scenario.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        (RadGrid1.MasterTableView.GetColumn("ExpandColumn") as GridExpandColumn).HeaderText = "Your Text";
        RadGrid1.Rebind();
    }
}

Hope this helps.

Regards,
Shinu.
Tags
Grid
Asked by
beeta one
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or