/// <summary> /// Function to Edit tbl_unitconvertion /// </summary> public void MultipleUnitTableForUpdate() { try { UnitConvertionSP spUnitConverstions = new UnitConvertionSP(); DataTable dtblMulUnit = new DataTable(); dtblMulUnit = spUnitConverstions.UnitConverstionTableForEdit(decProductIdForEdit); dtblMulUnitForEdit = dtblMulUnit; if (cmbOpeningStock.SelectedIndex == 1 && dtblForUnitIdInOpeNingStock != null && dtblForUnitIdInOpeNingStock.Rows.Count > 0) { dgvcmbUnit.DataSource = dtblForUnitIdInOpeNingStock; dgvcmbUnit.DisplayMember = "unitName"; dgvcmbUnit.ValueMember = "dgvtxtunitId"; } } catch (Exception ex) { MessageBox.Show("PC:21" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }