Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想在 datagridview 的第一个位置插入一行,并且添加的行应该向下移动。
我正在使用以下代码
DataRow row = dtLocl.NewRow(); dtLocl.Rows.InsertAt(row,0);
添加新记录时,我无法设置焦点。
也许这个链接会帮助你..
编辑:忘记链接..试试这个:
dataGridView1.Rows[0].Selected = true;