Answers for "c# datagridview move to next row"

C#
1

c# DataGridView navigating to next row

int nRow;
private void Form1_Load(object sender, EventArgs e)
{

    nRow = dataGridView1.CurrentCell.RowIndex;
}

private void button1_Click(object sender, EventArgs e)
{
    if (nRow < dataGridView1.RowCount )
    {
        dataGridView1.Rows[nRow].Selected = false;
        dataGridView1.Rows[++nRow].Selected = true;
    }
}
Posted by: Guest on November-07-2020

Code answers related to "c# datagridview move to next row"

C# Answers by Framework

Browse Popular Code Answers by Language