G
Guest
Hello,
I am trying to use the new "Bind" instead of "DataBinder.Eval" but cannot
see a way to use it in code. Can someone help?. Here is my code that is using
"DataBinder.Eval" which I want to change to "Bind" method.
Sub BindStringColumn(ByVal sender As Object, ByVal e As EventArgs)
Dim lbl2 As Label = CType(sender, Label)
Dim Container As DataGridItem = CType(lbl2.NamingContainer,
DataGridItem)
lbl2.Text = DataBinder.Eval(Container.DataItem, Field2)
End Sub
Thanks,
Ganesh
I am trying to use the new "Bind" instead of "DataBinder.Eval" but cannot
see a way to use it in code. Can someone help?. Here is my code that is using
"DataBinder.Eval" which I want to change to "Bind" method.
Sub BindStringColumn(ByVal sender As Object, ByVal e As EventArgs)
Dim lbl2 As Label = CType(sender, Label)
Dim Container As DataGridItem = CType(lbl2.NamingContainer,
DataGridItem)
lbl2.Text = DataBinder.Eval(Container.DataItem, Field2)
End Sub
Thanks,
Ganesh