datagridview 新增方式
2020-12-13 02:32
标签:datagridview cti for io user view
//新增 datagridview 新增方式,搜素材,soscw.com datagridview 新增方式 标签:datagridview cti for io user view 原文地址:http://www.cnblogs.com/poloyzhang/p/3772439.html
this.dataGridView1.AllowUserToAddRows =
true;
if
(iTag ==
1)
{
//默认自动编号排序
dataGridView1.Columns["taskId"].HeaderCell.SortGlyphDirection =
SortOrder.Ascending;
//跳到最后一行
bindingNavigatorMoveLastItem.PerformClick();
}
if (iTag
== 2)
{//默认自动编号排序
dataGridView1.Columns["planId"].HeaderCell.SortGlyphDirection =
SortOrder.Ascending;
bindingNavigatorMoveLastItem.PerformClick();
}