/// <summary> /// Function to fill the grid /// </summary> public void GridFill() { try { DataTable dtbl = new DataTable(); dtbl = spFinancialStatement.CashOrBankBookGridFill(Convert.ToDateTime(txtFromDate.Text), Convert.ToDateTime(txtToDate.Text), "", true); dgvCashOrBank.DataSource = dtbl; } catch (Exception ex) { formMDI.infoError.ErrorString = "CBBOOK2:" + ex.Message; } }
/// <summary> /// Function to fill the grid /// </summary> public void GridFill() { try { DataTable dtbl = new DataTable(); dtbl = spFinancialStatement.CashOrBankBookGridFill(Convert.ToDateTime(txtFromDate.Text), Convert.ToDateTime(txtToDate.Text), "", true); dgvCashOrBank.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("CBBOOK02 :" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }