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

edit column header text?

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 22 Sep 2010, 12:32 PM
my radgrid has  AutoGenerateEditColumn="True"
by default there is no test in the edit column header. Is it possible to put a header text in the edit column?
thanks in advance

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Sep 2010, 01:12 PM
Hello,

The following code snippet will help you to add a header text for AutoGeneratedEditColumn.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridHeaderItem)
     {
         GridHeaderItem headerItem = (GridHeaderItem)e.Item;
         headerItem["AutoGeneratedEditColumn"].Text = "Edit";
     }
 }

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