DataGridView 行的选中问题 winform下: DataGridView的第一行是默认选中的,怎么让DataGridView的所有行都不选中?百度上没找到解决方法。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 增加 SelectionChanged事件 void dataGridView1_SelectionChanged(object sender, EventArgs e) { dataGridView1.ClearSelection(); dataGridView1.CurrentCell = null; }如果绑定后也加上 dataGridView1.ClearSelection(); dataGridView1.CurrentCell = null; 索引超出范围。必须为非负值并小于集合大小。 参数名: index C# dataset!!!! 求时间控件 datagrid如何绑定sum(..)这种字段啊? 怎么在路径里加一个反斜线? 总是在网页中看到<% xxx %>,这玩艺到底是什么意思? WinForm.DataGid的问题,顶没分 System.Net.Sockets.Socket问题,由于系统缓冲区空间不足或列队已满~ toolbar控件 help me C#winform问题! C#winform
void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
dataGridView1.ClearSelection();
dataGridView1.CurrentCell = null;
}
如果绑定后也加上
dataGridView1.ClearSelection();
dataGridView1.CurrentCell = null;