B
Bharathi Kumar
Hi,
Iam working on a window application using vb.net 2005.
There is a control "DataGridView" in vs 2005 instead of data
grid control.
After binding the datagridview, When we click on any cell to
modify the data (or anything) the entire
cell will be selected.
When user want to modify the data in any cell he has to click
there thrice:
Click 1: Setting focus to the cell. (This selects the entire
cell. A blur bar will appear in the selected cell)
Click 2: This brings the cell into edit mode. (This selects
the text in the cell)
Click 3: To place the cursor in the cell so that data
modification can be done.
Instead of this way, I want the cursor to be in the cell when we press
the tab or just select it. How can I achieve this. Please.........
I have tried the following code :
Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object,
ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs)
Handles DataGridView1.CellBeginEdit
SendKeys.Send("{Right}")
End Sub
But it didnt help me. I didnt achieve the required functionality.
Please help.
Thanks and regards,
Bharathi.
Iam working on a window application using vb.net 2005.
There is a control "DataGridView" in vs 2005 instead of data
grid control.
After binding the datagridview, When we click on any cell to
modify the data (or anything) the entire
cell will be selected.
When user want to modify the data in any cell he has to click
there thrice:
Click 1: Setting focus to the cell. (This selects the entire
cell. A blur bar will appear in the selected cell)
Click 2: This brings the cell into edit mode. (This selects
the text in the cell)
Click 3: To place the cursor in the cell so that data
modification can be done.
Instead of this way, I want the cursor to be in the cell when we press
the tab or just select it. How can I achieve this. Please.........
I have tried the following code :
Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object,
ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs)
Handles DataGridView1.CellBeginEdit
SendKeys.Send("{Right}")
End Sub
But it didnt help me. I didnt achieve the required functionality.
Please help.
Thanks and regards,
Bharathi.