private void PopulateCostCentre() { DataTable dtPCostCentre = new DataTable(); dtPCostCentre = CommonBL.Get_CostCentre(); DataRow dr = dtPCostCentre.NewRow(); dr["CostCentreId"] = "-1"; dr["CostCentreName"] = "ALL"; dtPCostCentre.Rows.InsertAt(dr, 0); repositoryItemLookUpEdit2.DataSource = dtPCostCentre; repositoryItemLookUpEdit2.ForceInitialize(); repositoryItemLookUpEdit2.PopulateColumns(); repositoryItemLookUpEdit2.ValueMember = "CostCentreId"; repositoryItemLookUpEdit2.DisplayMember = "CostCentreName"; repositoryItemLookUpEdit2.ShowHeader = false; repositoryItemLookUpEdit2.ShowFooter = false; repositoryItemLookUpEdit2.Columns["CostCentreId"].Visible = false; cboBCostCentre.EditValue = -1; repositoryItemLookUpEdit1.DataSource = dtPCostCentre; repositoryItemLookUpEdit1.ForceInitialize(); repositoryItemLookUpEdit1.PopulateColumns(); repositoryItemLookUpEdit1.ValueMember = "CostCentreId"; repositoryItemLookUpEdit1.DisplayMember = "CostCentreName"; repositoryItemLookUpEdit1.ShowHeader = false; repositoryItemLookUpEdit1.ShowFooter = false; repositoryItemLookUpEdit1.Columns["CostCentreId"].Visible = false; cboPCostCentre.EditValue = -1; }