datagrid里的按钮
啊笨姐,我想让datagrid 里的按钮能删除当前项.已经添加好了,怎么把代码弄进去啊?怎么写呢??谢谢啦MSDN上这么写的:
Private Sub DataGrid1_DeleteCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) _
Handles DataGrid1.DeleteCommand
Dim index As Integer
index = e.Item.ItemIndex
' Add code to delete data from data source.
DataGrid1.DataBind()
End Sub
可中间添加代码的部分怎么写呢?