DataView dv = new DataView(db1DataSet.Tables["表1"]);
dv.ApplyDefaultSort = true;
dv.Sort = "dh";
while (dhh>0)
{
if (dv.Find(dhh) < 0)
{
//dh = i;
break;
}
else
{
dhh = 1 + dhh;
}
}
d["dh"] = dhh;
d["日期"] = DateTime.Now;
db1DataSet.Tables["表1"].Rows.Add(d);