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

[Solved] Header for expand/collapse column

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 07 Feb 2013, 08:36 AM
Hi
     Can anyone help me give header to the expand/collapse column in my radgrid. Thanks for your help

Regards
RT

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Feb 2013, 08:40 AM
Hi Ryan,

Please try the following code snippet to give HeaderText for the expand/collapse column.

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

Thanks,
Shinu.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or