Hello! (VS 2005).
I'm trying to enter cell from a button click , like simulate DataGrid cell double click.
Thank You
Printable View
Hello! (VS 2005).
I'm trying to enter cell from a button click , like simulate DataGrid cell double click.
Thank You
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.
It is a DataGridView.
Hi,Quote:
Originally Posted by BorisAro
You could use this:
Hope it helps,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
sparrow1
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
I discovered:
Me.DataGridView2.BeginEdit(False)
works fine.