private void CoordinatorFill() { ExhibitionMasterBuss Obj_Coor = new ExhibitionMasterBuss(); List <ExhibitionCoordinatorMaster> Obj_Co = Obj_Coor.GetCoordinators(); if (Obj_Co != null && Obj_Co.Count > 0) { grd.DataSource = Obj_Co; grd.DataBind(); } else { grd.DataSource = null; grd.DataBind(); } }
private void ExhibitionFill() { ExhibitionMasterBuss Obj_Coor = new ExhibitionMasterBuss(); List <ExhibitionCoordinatorMaster> Obj_Coordinator_ID = Obj_Coor.GetCoordinators(); if (Obj_Coordinator_ID != null && Obj_Coordinator_ID.Count > 0) { for (int i = 0; i < Obj_Coordinator_ID.Count; i++) { ddl_Exhibition.Items.Add(Obj_Coordinator_ID[i].ID.ToString()); } ddl_Exhibition.Items.Insert(0, new ListItem("Select Coordinator", " ")); } else { ddl_Exhibition.Items.Clear(); } }