in GridView:
proctected sub gridview.DataBound(Byval sender as object, byval e assystemEventArgs) handles gridview.databound
{
}
how to use DataBound in DATAGRID??
in GridView:
proctected sub gridview.DataBound(Byval sender as object, byval e assystemEventArgs) handles gridview.databound
{
}
how to use DataBound in DATAGRID??
Tim Schmelter
On
To be honest, your question doesn't make much sense currently. But if you want to handle the GridView's DataBound event (as opposed to the RowDataBound event):
Protected Sub Gridview1_DataBound(sender As Object, e As System.EventArgs) Handles Gridview1.DataBound
Dim grid = DirectCast(sender, GridView)
Dim dataSource As Object = grid.DataSource
For Each row As GridViewRow In grid.Rows
' do something, looping all rows in the grid with RowType=DataRow '
Next row
End Sub
You can try with this code based on
OnItemDataBound