private void BindDataGridView( ) { try { int page = ipage; BtnEnabel(false); string[] strWhere = str; if (chkUnion.Checked) { isUnion = true; } else { isUnion = false; } DataSet ds = aBLL.GetEmployeeAttendanceInitialData(strWhere, isUnion); if (ds != null) { DataTable dt = new DataTable(); //dgrd.DataSource = ds.Tables[0]; Getdgv(ds.Tables[1]); lblGet(lblCounts, "共有" + ds.Tables[0].Rows[0][0].ToString() + "条记录"); } else { lblGet(lblCounts, "共有0条记录"); } //pictureBox1.Visible = false; picvis(false); BtnEnabel(true); } catch (Exception ex) { try { picvis(false); BtnEnabel(true); } catch (Exception exp) { } } th.Abort(); }