Hi,
Probably a basic thing but how can you cancel the row selection in a datagridview?
Used google but probably used the wrong words because I was unable to find the answer I am looking for.
What I want to do is when user selects a row it first needs to check if there are unsaved data in the form.
If this fails it should return to the previous row.
Tried doing this in selectionchanged but I can't cancel the selection of the selected row.
Can someone please give me some code to hanles this.
Thank very much in advance.
Ernst Jan
Probably a basic thing but how can you cancel the row selection in a datagridview?
Used google but probably used the wrong words because I was unable to find the answer I am looking for.
What I want to do is when user selects a row it first needs to check if there are unsaved data in the form.
If this fails it should return to the previous row.
Tried doing this in selectionchanged but I can't cancel the selection of the selected row.
Can someone please give me some code to hanles this.
Thank very much in advance.
Ernst Jan