Beispiel #1
0
 private void BindData()
 {
     try
     {
         DataTable dt = dbobj.GetTabData(dbName, tabname);
         dataGridView1.DataSource = dt;
         dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);
         StatusLabel_Count.Text = dt.Rows.Count + "行 ";
     }
     catch (System.Exception er)
     {
         LogHelper.WriteException(er);
     }
 }