C# DataGridViewRow转换为(Model)实体对象

https://blog.csdn.net/cxu123321/article/details/107875832

 ContactModel model = dataGridView1.CurrentRow.DataBoundItem as ContactModel;

DataGridViewRow dgvr= rcomdgv1.SelectedRows[0];
 Models.DGVModel model = Models.DGVModel as dgvr.DataBoundItem
posted @ 2021-12-18 17:36  LuoCore  阅读(912)  评论(0编辑  收藏  举报