In my current project I have created a DataGridView that shows a File Structure that is created by the application based upon reading a text file with delimiters. The user can optionally change the structure as needed.
I have three buttons: Add, Edit, and Delete. These pertain to each row in the File Structure datagrid called DGVStructure. I have decided to use a DataGridView because I can eliminate the need for another form for record editing.
For example: If I add a new row I have it setup so that the cursor moves to the new row and enables editing. I do not want the customer moving from this row until they either cancel the record addition or his ENTER to save the newly added row.
I have seen some solutions about KeyPress and KeyDown. Could you give me some assistance on creating the code needed that will now allow movement from the current row until it is either cancelled or saved?
Thanks for the assistance!