I'm using VB.Net 2005 and I am trying to do the following on a WinForm; When form loads, based on who is logged in, I want to enable or disable the user's ability to add and delete records. The form has fields on the main form and also a datagridview. I also need to be able to detect if the form is dirty (i.e. has records edited)
1. What is the code to prevent adding/deleting records on main form and on the DataGridView?
2. How do I determine if the Form is Dirty?