I am using the following code to delete a row in a datagrid.
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
DsBCABD1.BCABD_Reg.Rows(index).Delete()
DaBCABDReg.Update(DsBCABD1)
DaBCABDReg.Fill(DsBCABD1)
DataGrid1.DataBind()
End Sub
It works fine. But, I would like to include a "Are You Sure??" somehow.
I have no clue!!
Any help would be great
Thanks
Ray
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
DsBCABD1.BCABD_Reg.Rows(index).Delete()
DaBCABDReg.Update(DsBCABD1)
DaBCABDReg.Fill(DsBCABD1)
DataGrid1.DataBind()
End Sub
It works fine. But, I would like to include a "Are You Sure??" somehow.
I have no clue!!
Any help would be great
Thanks
Ray