Search
VB
-
Tips
Visual Basic .Net tips and tricks
1
Previous
Next
DataGrid: Alert by a delete of rows using change row
Datagrid Alert by delete of rows
AddHandler ds.Tables(0).RowDeleted, _
New DataRowChangeEventHandler(AddressOf Row_Delete)
Private Sub Row_Delete(ByVal sender As Object, ByVal e _
As DataRowChangeEventArgs)
If e.Action = DataRowAction.Delete Then
If MessageBox.Show("Delete row? ", _
"", MessageBoxButtons.OKCancel) = DialogResult.Cancel Then
e.Row.RejectChanges()
End If
End If
End Sub
1
Previous
Next
Syndication
Rss feed
Select a Category
General Grid Tips
DataGrid Tips
DataGridView Tips
Windows Forms Controls
General Ado.Net Tips
SqlClient Ado.Net Tips
OleDB Ado.Net Tips
Asp.Net Tips
Miscellanous Tips
Vista programming Tips
WPF Tips
Silverlight
Articles
Links
Code Camp
FAQs
VB Related Websites
Microsoft Visual Basic Home Page
Visual Basic .Net Wikipedia Page
Visual Basic Forums
Visual Basic Newsgroup
VB City
Thinq Linq
VB Helper
I love VB