Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
In our application we have functionality that when user double click on any row of Rad-grid then that row become in editable mode. so now we have requirement that when user double click on a specific column of that row then after coming in editable mode that control must be auto focused.
So i need the value of cell on which it is double clicked to set the focus on that control when that row comes in editable mode. So is there any event of Rad-grid which provides this functionality.

Any suggestion will be helpful.

For Example if i double click on row's RateType column then the RateType Drop Down which comes in editable mode must be auto focused.
Posted

1 solution

you can use the DataGridView event CellBeginEdti

VB
Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
'Here you can write the which column like to in editable mode
    End Sub
 
Share this answer
 
Comments
Goel Himanshu 20-Sep-13 6:07am    
Hi Basurajkumbhar thanks for you suggestion. but how to capture the value of that column cell on which user has double clicked in read only mode so that i can focus on that control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900