/// <summary> /// 在网格控件中增加新行(DataTable已经做了默认值的使用) /// </summary> /// <param name="dgv">DataGridView 控件</param> /// <param name="dt">DataGridView 所绑定的 DataTable</param> /// <param name="Col">新增后光标所定位在的列</param> public virtual void AddNewRow(DataGridView dgv, SD.DataTable dt, int Col) { CommDBFunction.AddNewRow(dgv, dt, Col); }
/// <summary> /// 在网格控件中增加新行 /// </summary> /// <param name="dgv">DataGridView 控件</param> /// <param name="ColIndex">用于判断可否新增行的列的数组</param> public virtual void AddNewRow(DataGridView dgv, int[] ColIndex) { CommDBFunction.AddNewRow(dgv, ColIndex); }