/// <summary> /// Function to fill Unit combobox /// </summary> public void UnitComboInsideGridFill() { UnitConvertionSP spUnitConvertion = new UnitConvertionSP(); DataTable dtbl = new DataTable(); dtbl = spUnitConvertion.UnitsOfPerticularProduct(decProductIdForEdit); dgvcmbUnit.DataSource = dtbl; DataRow drow = dtbl.NewRow(); drow["unitName"] = string.Empty; drow["unitId"] = 0; dtbl.Rows.InsertAt(drow, 0); dgvcmbUnit.ValueMember = "unitId"; dgvcmbUnit.DisplayMember = "unitName"; }