private void timer1_Tick(object sender, EventArgs e)
{
string connSql = ConfigurationManager.ConnectionStrings["sql"].ConnectionString;
string sql = "select [UserID],[UserName],[UserPwd],[ErrorTimes], [LastErrorDateTime] from [UserInfo];select * from SCS_Stocker_Parameter";
DataSet ds = new DataSet();
adaper.Fill(ds);
//dataGridView1.DataSource = ds.Tables[1];
DataTable tbl = ds.Tables[1];
bindingSource1.DataSource = tbl;
dataGridView1.DataSource = bindingSource1;
dataGridView1.Update();
}