Has anyone worked with the onItemDataBound event of a datagrid?
I am working with it now, wanting to change the .text() property of a cell based on the data that's in there. However, every time I touch it, the header for the column no longer appears...
Has anyone experienced this, and solved the problem?
Public Sub dgUsers_OnItemDataBound(ByVal source As Object, ByVal e As DataGridItemEventArgs) Handles dgUsers.ItemDataBound
Dim division As New String(e.Item.Cells(2).Text())
e.Item.Cells(2).Text = getDivision(division)
End Sub
Just trying to do a simple text replacement. And this works just fine, except that the header on the column is lost.
thx-
paul
I am working with it now, wanting to change the .text() property of a cell based on the data that's in there. However, every time I touch it, the header for the column no longer appears...
Has anyone experienced this, and solved the problem?
Public Sub dgUsers_OnItemDataBound(ByVal source As Object, ByVal e As DataGridItemEventArgs) Handles dgUsers.ItemDataBound
Dim division As New String(e.Item.Cells(2).Text())
e.Item.Cells(2).Text = getDivision(division)
End Sub
Just trying to do a simple text replacement. And this works just fine, except that the header on the column is lost.
thx-
paul