先数据绑定datagridview.datasouce = newtable
数据保存
for(int i=0;i<this.newtable.rowscount;i++)
{
...
}窗体上datagridview显示记录2条,一条有数据,一条空行;
保存时
this.newTable.Rows.Count为0为什么呢?
datagridview.rows.count和this.newtable.rows.count为什么数值又不同呢?