Exemple #1
0
        public FwkGridStyleControl(GridProperties pGridProperties)
        {
            this.GridProperties = pGridProperties;
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.StandardDoubleClick, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            InitializeComponent();

            chkAllowAddRows.Checked       = GridProperties.AllowAddRows;
            chkAllowDeleteRows.Checked    = GridProperties.AllowDeleteRows;
            chkAllowReziseRows.Checked    = GridProperties.AllowResizeRows;
            chkAllowSortColumns.Checked   = GridProperties.AllowOrderColumns;
            chkAllowResizeColumns.Checked = GridProperties.AllowResizeColumns;
        }
        public FwkGridStyleControl(GridProperties pGridProperties)
        {
            this.GridProperties = pGridProperties;
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.StandardDoubleClick , true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            InitializeComponent();

            chkAllowAddRows.Checked = GridProperties.AllowAddRows;
            chkAllowDeleteRows.Checked = GridProperties.AllowDeleteRows;
            chkAllowReziseRows.Checked = GridProperties.AllowResizeRows;
            chkAllowSortColumns.Checked = GridProperties.AllowOrderColumns;
            chkAllowResizeColumns.Checked = GridProperties.AllowResizeColumns;
        }
        public FwkGridStyleForm(GridProperties pGridProperties)
        {
            _GridProperties = pGridProperties;
            InitializeComponent();

            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.StandardDoubleClick, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);


            chkAllowAddRows.Checked       = _GridProperties.AllowAddRows;
            chkAllowDeleteRows.Checked    = _GridProperties.AllowDeleteRows;
            chkAllowReziseRows.Checked    = _GridProperties.AllowResizeRows;
            chkAllowSortColumns.Checked   = _GridProperties.AllowOrderColumns;
            chkAllowResizeColumns.Checked = _GridProperties.AllowResizeColumns;

            chkHeaderVisible.Checked  = _GridProperties.RowHeaderVisible;
            chkMarckEditedRow.Checked = _GridProperties.MarckEditedRow;
            lblRowEditColor.BackColor = _GridProperties.RowEditedColor;

            //DefaultStyles( _GridProperties.IFwkCellStyle);
            FillCliente();
        }
Exemple #4
0
        public FwkGridStyleForm(GridProperties pGridProperties)
        {

            _GridProperties = pGridProperties;
            InitializeComponent();
          
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.StandardDoubleClick, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);


            chkAllowAddRows.Checked = _GridProperties.AllowAddRows;
            chkAllowDeleteRows.Checked = _GridProperties.AllowDeleteRows;
            chkAllowReziseRows.Checked = _GridProperties.AllowResizeRows;
            chkAllowSortColumns.Checked = _GridProperties.AllowOrderColumns;
            chkAllowResizeColumns.Checked = _GridProperties.AllowResizeColumns;

            chkHeaderVisible.Checked = _GridProperties.RowHeaderVisible;
            chkMarckEditedRow.Checked = _GridProperties.MarckEditedRow;
            lblRowEditColor.BackColor = _GridProperties.RowEditedColor;

            //DefaultStyles( _GridProperties.IFwkCellStyle);
            FillCliente();
        }