Example #1
0
        private void PopulateAmenities()
        {
            ProjectInfoBO AmeBO = new ProjectInfoBO()
            {
                i_CostCentreId = i_CostCentreId
            };
            DataTable dtAme = new DataTable();

            dtAme = ProjectInfoDL.SelectAmenitiesMaster();
            grdAmenitiesMaster.DataSource = dtAme;
            grdAmenitiesMasterView.PopulateColumns();
            grdAmenitiesMasterView.Columns["AmenityId"].Visible = false;

            grdAmenitiesMasterView.AddNewRow();
            grdAmenitiesMasterView.Appearance.HeaderPanel.Font      = new Font(grdAmenitiesMasterView.Appearance.HeaderPanel.Font, FontStyle.Bold);
            grdAmenitiesMasterView.Appearance.FocusedCell.BackColor = Color.Teal;
            grdAmenitiesMasterView.Appearance.FocusedCell.ForeColor = Color.White;
            grdAmenitiesMasterView.Appearance.FocusedRow.ForeColor  = Color.Teal;
            grdAmenitiesMasterView.Appearance.FocusedRow.BackColor  = Color.White;

            grdAmenitiesMasterView.OptionsSelection.EnableAppearanceHideSelection = false;
        }
Example #2
0
 public static DataTable SelectAmenitiesMaster()
 {
     return(ProjectInfoDL.SelectAmenitiesMaster());
 }