C# dataGridView 如何选中整行?

this.dataGridView1.SelectionMode =DataGridViewSelectionMode.FullRowSelect;

dataGridView1即你的dataGridView名称。

猜你喜欢

转载自www.cnblogs.com/net-sky/p/9302413.html
今日推荐