Datagridview rowvalidating delete
I tried to show the confirmation dialog at the roweditended event, but when the user clicks on No, the row's edit mode is still being ended.
Handled = true, but that doesn't do anything, the row is still being edit ended.
I don't know how to fix this error, so I decided to disable button "delete" when nothing is in datagridview.
Funny thing, but, when I put the code into "delete" button and make an Mouse Hover event over the delete button or mousehover event for whole Form, code is working.
Row Index) Hi Linda and Jeffrey, Thank you very much for your posta! I have two additional questions for both of you: 1 - How can I make the cursor blink in the first cell/column of the first row once I open/load the form? I managed to take the focus to first cell/column of the first row once I open/load the form.
2 - Also, could you give me the code and tell me how to move the cursor to the first cell/column of the SECOND row once the 'Enter' key is pressed in the first cell/column of the first row? SQLServer AT gmail DOT com Here is the complete code that I have: Public Class frm Sample Receipt Inherits System.