G
Guest
hey all,
i was wondering if the following code, in general, if it wouldn't always be
a good idea or if there's a better way to do it.
Private Sub DataGrid2_ItemDataBound(ByVal sender As Obj...
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
Dim lnb As LinkButton
lnb = e.Item.Cells(1).FindControl("LinkButton1")
lnb.Text = e.Item.DataItem("OrderID")
End If
All i'm trying to do is take a field in each row of the datasource and
assign it to the text of a link button so users can click it.
Thanks,
rodchar
i was wondering if the following code, in general, if it wouldn't always be
a good idea or if there's a better way to do it.
Private Sub DataGrid2_ItemDataBound(ByVal sender As Obj...
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
Dim lnb As LinkButton
lnb = e.Item.Cells(1).FindControl("LinkButton1")
lnb.Text = e.Item.DataItem("OrderID")
End If
All i'm trying to do is take a field in each row of the datasource and
assign it to the text of a link button so users can click it.
Thanks,
rodchar