How do I get a DataRow from a row in a DataGridView

后端 未结 4 603
长情又很酷
长情又很酷 2020-12-13 09:05

I\'m using a databound Windows Forms DataGridView. how do I go from a user selected row in the DataGridView to the DataRow of the

4条回答
  •  长情又很酷
    2020-12-13 09:49

    In a DataGridViewRow is a property called DataBoundItem of type object.

    This will contain a DataRowView (for certainty you can check this)

提交回复
热议问题