vb.net programmatically cancel editig datagridview cell
up vote
0
down vote
favorite
I'm new in vb.net and have a problem with cancel cell edit in data grid view.
I want to have edit property for whole data grid view set on true
but on "double click" event I want to run some code and in the end cancel cell editing (blinking cursor).
On VBA to do this in Excel i type cancel = true
.
What would be the formula for vb.net?
vb.net
add a comment |
up vote
0
down vote
favorite
I'm new in vb.net and have a problem with cancel cell edit in data grid view.
I want to have edit property for whole data grid view set on true
but on "double click" event I want to run some code and in the end cancel cell editing (blinking cursor).
On VBA to do this in Excel i type cancel = true
.
What would be the formula for vb.net?
vb.net
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm new in vb.net and have a problem with cancel cell edit in data grid view.
I want to have edit property for whole data grid view set on true
but on "double click" event I want to run some code and in the end cancel cell editing (blinking cursor).
On VBA to do this in Excel i type cancel = true
.
What would be the formula for vb.net?
vb.net
I'm new in vb.net and have a problem with cancel cell edit in data grid view.
I want to have edit property for whole data grid view set on true
but on "double click" event I want to run some code and in the end cancel cell editing (blinking cursor).
On VBA to do this in Excel i type cancel = true
.
What would be the formula for vb.net?
vb.net
vb.net
edited Nov 8 at 15:12
Megadix
865918
865918
asked Nov 8 at 14:43
Beginner
51
51
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
You can use CancelEdit method on CellMouseDoubleClick Event:
Private Sub DataGridView1_CellMouseDoubleClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
DataGridView1.CancelEdit()
End Sub
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
You can use CancelEdit method on CellMouseDoubleClick Event:
Private Sub DataGridView1_CellMouseDoubleClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
DataGridView1.CancelEdit()
End Sub
add a comment |
up vote
0
down vote
accepted
You can use CancelEdit method on CellMouseDoubleClick Event:
Private Sub DataGridView1_CellMouseDoubleClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
DataGridView1.CancelEdit()
End Sub
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
You can use CancelEdit method on CellMouseDoubleClick Event:
Private Sub DataGridView1_CellMouseDoubleClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
DataGridView1.CancelEdit()
End Sub
You can use CancelEdit method on CellMouseDoubleClick Event:
Private Sub DataGridView1_CellMouseDoubleClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
DataGridView1.CancelEdit()
End Sub
answered Nov 8 at 17:52
andreas charidemou
475
475
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53210067%2fvb-net-programmatically-cancel-editig-datagridview-cell%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown