AddHandler grid.ItemDataBound, AddressOf OnContentItemDataBound
or you can add the handles keyword to the end of the OnContentItemDataBound
function signature, e.g.,
Private Sub OnContentItemDataBound(ByVal sender As Object, ByVal e As
DataGridItemEventArgs) Handles grid.ItemDataBound
End Sub
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Ken Slight" wrote:
In C#, I use the following to bind ItemDataBound to a DataGrid:
grid.ItemDataBound += new DataGridItemEventHandler(OnContentItemDataBound);
Does anyone know the equivalent of this in vb.net?
Thanks,
Ken