/// <summary> /// Function to fill datagridview /// </summary> public void Gridfill() { try { DataTable dtblCounter = new DataTable(); CounterSP spCounter = new CounterSP(); dtblCounter = spCounter.CounterOnlyViewAll(); dgvCounter.DataSource = dtblCounter; } catch (Exception ex) { MessageBox.Show("CT2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill datagridview /// </summary> public void Gridfill() { try { DataTable dtblCounter = new DataTable(); CounterSP spCounter = new CounterSP(); dtblCounter = spCounter.CounterOnlyViewAll(); dgvCounter.DataSource = dtblCounter; } catch (Exception ex) { formMDI.infoError.ErrorString = "CT2" + ex.Message; } }
/// <summary> /// Function to use the Counter Combo Fill /// </summary> public void CounterComboFill() { CounterSP SpCounter = new CounterSP(); DataTable dtbl = new DataTable(); try { dtbl = SpCounter.CounterOnlyViewAll(); cmbCounter.DataSource = dtbl; cmbCounter.DisplayMember = "counterName"; cmbCounter.ValueMember = "counterId"; } catch (Exception ex) { MessageBox.Show("POS : 11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Error); } }