vbdotnetlover 0 Newbie Poster

Datagridview has three columns as

code-----name------country
1--------Eric--------Germany
2---------Bill--------France

I want to apply code like these

If e.ColumnIndex = 2 Or e.KeyValue = Keys.Left Then
            SendKeys.Send("{RightArrow}")
        End If

These are not correct codes, I need modification
Reason:

When cursor is in column3 (country) and user press LEFT arrow key then cursor must move to column 0 (code)

I want to skip column1 (name)

Please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.