I'd like to programmatically change the radgrid column header (depending on user culture). In my database I have the translation of words to use for each column uniquename.
To do the translation I use the radgrid_columncreated event.
I have the problem that e.Column.UniqueName is "ExpandColumn" for all my bound data columns, how can I access the .aspx specified UniqueName?
To do the translation I use the radgrid_columncreated event.
| protected void RadGridTraduzione_ColumnCreated(object sender, GridColumnCreatedEventArgs e) |
| { |
| string c = e.Column.UniqueName; |
| GridColumn boundColumn = e.Column as GridColumn; |
| if (boundColumn.UniqueName == "Maschera") |
| { |
| switch (((SessionInformation)Session["sessionData"]).IdCultura) |
| { |
| case 1: |
| //boundColumn.HeaderText = ...; |
| break; |
| case 2: |
| //boundColumn.HeaderText = ...; |
| break; |
| case 3: |
| break; |
| case 4: |
| break; |
| } |
| } |
| } |
I have the problem that e.Column.UniqueName is "ExpandColumn" for all my bound data columns, how can I access the .aspx specified UniqueName?