Click here to Skip to main content
15,884,838 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi !

I m working on vb.net 2010 and using datagridview.

i want that the column tab stop should be auto bypass if the column is read only.

Suppose the cursor is on column number 2 and the column number 3 is read only.
i want that as i entered value in column number 2 the cursor should go to column number 4 not on 3 bkoz column 3 is read only.

hopefully my problem will be understood.

anyone help me ?

thanks !!
Posted
Updated 22-Aug-18 20:44pm

1 solution

VB
Private Sub dgv1_CellEnter(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs)
   If datagridview.Columns(e.ColumnIndex).Name = "columname" Then  
      SendKeys.Send("{Enter}")
   End If
End Sub


this will help you....
 
Share this answer
 
v3
Comments
Nelek 23-Aug-18 6:59am    
3 years too late

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