//先给 DataGridView 赋值一个空表
DataSet ds_temp = 数据库.getDs("select *  from  表名 where 1=0");
            if (ds_temp != null && ds_temp.Tables.Count > 0)
            {
                rcomdgv1.DataSource = ds_temp.Tables[0];
            }


//获取新增内容
rcomdgv1.CurrentCell = null;
 if (ds_temp.HasChanges())
{
                    var dsChanges = ds_temp.GetChanges();
                    if (dsChanges != null && dsChanges.Tables.Count < 1) { return; }


                 
                }

 

相关文章:

  • 2022-01-10
  • 2021-09-20
  • 2022-12-23
  • 2021-11-14
  • 2021-11-19
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2022-01-27
  • 2021-09-20
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-03-02
相关资源
相似解决方案