コード例 #1
0
 private void btnDisplay_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         DataTable dt = account.DisplayTrialBalance((DateTime?)DateFrom.EditValue, (DateTime?)DateTo.EditValue);
         TrialBalanceGrid.DataSource = dt;
         TrialBalanceGrid.DataMember = dt.TableName;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }