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