I have a column with dynamic values that I am setting at run time in the Item_DataBound event like so:
But when I edit the row, the column just displays as System.Data.DataRowView (because technically the bound column isn't bound, just change the cell contents at ItemBound). What is the corresponding event or method I should use to control this when the row is in editmode?
Private
Sub
rgDefects_ItemDataBound(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
rgDefects.ItemDataBound
'don't process anything other than data rows
If
e.Item.ItemType = GridItemType.Item
OrElse
e.Item.ItemType = GridItemType.AlternatingItem
Then
With
DirectCast
(e.Item, Telerik.Web.UI.GridDataItem)
'set the UOM_Text based upon the UM based upon the UM
.Item(
"UM"
).Text = Measure.DisplayUoM(UnitType.Linear, UserAccount.UnitSystemPreference)
End
With
End
If
End
Sub
But when I edit the row, the column just displays as System.Data.DataRowView (because technically the bound column isn't bound, just change the cell contents at ItemBound). What is the corresponding event or method I should use to control this when the row is in editmode?