هذا الكود للانتقال الى التالي
وهذا الكود للانتقال الى اول سجل
وهذا الكود للانتقال الى السجل السابق
كود :
Dim nextRow As DataGridViewRow = DataGridView1.Rows(DataGridView1.CurrentRow.Index + 1)
DataGridView1.CurrentCell = nextRow.Cells(0)كود :
Dim cell as Windows.Forms.DataGridViewCell= dataGridView1.Rows(0).Cells(0)
DataGridView1.CurrentCell = cell
DataGridView1.BeginEdit(True)كود :
Dim nextRow As DataGridViewRow = DataGridView1.Rows(DataGridView1.CurrentRow.Index - 1)
DataGridView1.CurrentCell = nextRow.Cells(0)