Пример #1
0
        private void FillBlockFlats()
        {
            dt = new DataTable();
            dt = UnitDirBL.GetBlockFlats(m_iCCId);
            grdBlock.DataSource = dt;

            grdViewBlock.Columns["LeadId"].Visible  = false;
            grdViewBlock.Columns["FlatId"].Visible  = false;
            grdViewBlock.Columns["Remarks"].Visible = false;
            grdViewBlock.BestFitColumns();

            grdViewBlock.OptionsCustomization.AllowFilter = false;
            grdViewBlock.OptionsView.ShowAutoFilterRow    = false;
            grdViewBlock.OptionsView.ShowViewCaption      = false;
            grdViewBlock.OptionsView.ShowFooter           = false;
            grdViewBlock.OptionsSelection.MultiSelectMode = GridMultiSelectMode.CellSelect;
            grdViewBlock.OptionsSelection.InvertSelection = false;
            grdViewBlock.OptionsView.ColumnAutoWidth      = true;
            grdViewBlock.Appearance.HeaderPanel.Font      = new Font(grdViewBlock.Appearance.HeaderPanel.Font, FontStyle.Bold);
        }