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

[Solved] Add Header Text to + sign column in Master Detail RaDrid

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 28 May 2009, 12:20 PM
How can I add a header to the + sign column to indicate what type of childrens exists.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 May 2009, 04:16 AM
Hi Joseph,

I hope you are trying to set the HeaderText for the ExpandCollapse column. If so try the following code snippet.

CS:
 
  protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridHeaderItem) 
        { 
            GridHeaderItem header = (GridHeaderItem)e.Item; 
            header["ExpandColumn"].Text = "ExpandCollapseColumn"
        } 
    }   


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