110,534
社区成员
发帖
与我相关
我的任务
分享
private void RefeData()
{
lock (ds)
{
string sql = string.Format("SELECT id,ranking,name,wangw,buy,week,time,outtime,shop FROM taodata");
try
{
if (ds.Tables.Count > 0)
{
ds.Tables.Clear();
}
ds = DbHelperSQLite.Query(sql);
this.Invoke(new MethodInvoker(() =>
{
this.bindingSource.DataSource = ds.Tables["ds"];
this.dgvdata.DataSource = bindingSource;
}));
}
catch (Exception ex)
{
}
}
}