get to edit cell datagridview

arjmand

Active member
Joined
Aug 17, 2006
Messages
29
Programming Experience
Beginner
Hi all, please help me to place the pointer on a specific row programatically, Note that the datagrid is binded to a data source. Currently I can select a row but to enter the data on that row I have to click the row, but I want that to happen programmatically. Please tell me which property of datagrid is used to contol the pointer(a lil arrow).
 
Last edited:
Set the current cell and enter edit mode with the BeginEdit method:
VB.NET:
[SIZE=2]
DataGridView1.CurrentCell = DataGridView1.Item(1, 5)
DataGridView1.BeginEdit([/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE][SIZE=2])
[/SIZE]
 
Back
Top