0

Hello good Teachers

I have a datagridview with 3 columns. the second column is a read only . When I leave column 1 I would like to go directly to column 3.

For this, I got following codes from somewhere but I need these codes in vb.net format, please help or suggest some other method

Code Snippet
void dataGridView1_KeyDown(object sender, KeyEventArgs e)

        {

            if (e.KeyData == Keys.Tab)

            {

                if (this.dataGridView1.CurrentCell.ColumnIndex == 0)

                {

                    this.dataGridView1.CurrentCell = this.dataGridView1[2, this.dataGridView1.CurrentCell.RowIndex];

                    e.Handled = true;

                }

            }

        }
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.