/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { ExchangeRateSP spExchangeRaterate = new ExchangeRateSP(); DataTable dtbl = new DataTable(); dtbl = spExchangeRaterate.ExchangeRateSearch(cmbCurrencyRate.Text.ToString(), Convert.ToDateTime(txtDatefrom.Text.ToString()), Convert.ToDateTime(txtDateTo.Text.ToString())); dgvExchangeRate.DataSource = dtbl; } catch (Exception ex) { formMDI.infoError.ErrorString = "ER9:" + ex.Message; } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { ExchangeRateSP spExchangeRaterate = new ExchangeRateSP(); DataTable dtbl = new DataTable(); dtbl = spExchangeRaterate.ExchangeRateSearch(cmbCurrencyRate.Text.ToString(), Convert.ToDateTime(txtDatefrom.Text.ToString()), Convert.ToDateTime(txtDateTo.Text.ToString())); dgvExchangeRate.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("ER9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { ExchangeRateSP spExchangeRaterate = new ExchangeRateSP(); DataTable dtbl = new DataTable(); dtbl = spExchangeRaterate.ExchangeRateSearch(cmbCurrencyRate.Text.ToString(), Convert.ToDateTime(txtDatefrom.Text.ToString()), Convert.ToDateTime(txtDateTo.Text.ToString())); dgvExchangeRate.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("ER9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }