I have the following code.
On the item bound how can I get hold of the DataRow that is used to populate this DataGridItem?VB Code:
Public Sub GetData() Dim dt As DataTable = 'code to create datatable. gdSearch.DataSource = dt gdSearch.DataBind() End Sub Private Sub gdSearch_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles gdSearch.ItemDataBound Dim DataItem As DataGridItem If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then DataItem = CType(e.Item, DataGridItem) 'Code to populate row End If End Sub
Woof




Reply With Quote