I need to change the header of a column in detailview to a data value of the parent row. I tried to achive this with the following code in the ItemDataBound-event, but it does not work.
Anyone got an idea?
| If e.Item.OwnerTableView.Name = "Level2" And e.Item.ItemType = Telerik.WebControls.GridItemType.Header Then |
| Dim header As Telerik.WebControls.GridHeaderItem = CType(e.Item, Telerik.WebControls.GridHeaderItem) |
| header("Rabatt").Text = e.Item.OwnerTableView.ParentItem.Cells(5).Text |
| End If |
Anyone got an idea?