如何在DataGridView控件左侧可见的代码中更新行指针

时间:2019-05-09 07:35:35

标签: vb.net datagridview

DataGridView左侧有一个三角形的指针,它指示当前选中的行,我想将指针移到刚更新的行。

1 个答案:

答案 0 :(得分:0)

 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    DataGridView1.Columns.Add("Disbacolum", "riteguise?")
    DataGridView1.Rows.Add(4)
    DataGridView1.Rows(0).Cells(0).Value = "wut"
    DataGridView1.Rows(1).Cells(0).Value = "awwwwyeee"
    DataGridView1.CurrentCell = DataGridView1.Rows(1).Cells(0)
End Sub

:) :) :) :) Here Go