|
-
May 10th, 2007, 05:11 AM
#1
Thread Starter
Lively Member
[RESOLVED] Simulate DataGrid cell double click
Hello! (VS 2005).
I'm trying to enter cell from a button click , like simulate DataGrid cell double click.
Thank You
Last edited by BorisAro; May 10th, 2007 at 05:11 AM.
Reason: Fault
-
May 10th, 2007, 05:12 AM
#2
Re: Simulate DataGrid cell double click
Are you sure it's a DataGrid, or is it a DataGridView? If it IS a DataGrid I would question you're using it when the DataGridView is better in almost every respect.
-
May 10th, 2007, 05:55 AM
#3
Thread Starter
Lively Member
Re: Simulate DataGrid cell double click
-
May 10th, 2007, 11:10 AM
#4
Re: Simulate DataGrid cell double click
 Originally Posted by BorisAro
It is a DataGridView.
Hi,
You could use this:
Code:
Private Sub DataGridView1_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentDoubleClick
' put here your code
End Sub
Hope it helps,
sparrow1
-
May 11th, 2007, 01:53 AM
#5
Thread Starter
Lively Member
Re: Simulate DataGrid cell double click
Seems I was misunderstood.
I got a form with a DataGridView and a couple of buttons.
I'd like to click one of the buttons, and then simulate as if a particular cell has been double clicked, i.e. simulate start enter text into this cell.
Thank You
-
May 12th, 2007, 05:40 AM
#6
Thread Starter
Lively Member
Re: Simulate DataGrid cell double click
I discovered:
Me.DataGridView2.BeginEdit(False)
works fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|