Link Button Event in a Datagrid in ASP.NET
This code gets the event of the Linkbutton placed in a Datagrid. make sure the datagrid is not autogenerates and the data should be bounded. In this code the linkbutton is placed in the first column of the Datagrrid using the datagrid properties.
Technology : ASP.NET
Language : VB
Code:
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.ItemCommand
TextBox1.Text = e.Item.Cells(1).Text
End Sub
The DataGrid1_itemcommand is the event handler for the Datagrid.
Comments Please.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home