且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

单击DataGridView和按钮中的选择行后,如何将数据从一个用户控件复制到另一个用户控件

更新时间:2023-10-11 15:07:10

你有什么问题?



它会选择你点击的行吗?



如果有的话试试这个,



DGV_Summary.SelectionMode = DataGridViewSelectionMode.SelectedRows;
What is the problem you have?

is it that is does selecet the row that you have clicked on?

if so try this,

DGV_Summary.SelectionMode = DataGridViewSelectionMode.SelectedRows;