Exemple #1
0
        public static CustomGridBand CreateNewGridBand(int _NoOfColumns, string _BandName)
        {
            _band              = new CustomGridBand();
            _band.Name         = _BandName;
            _band.Caption      = _BandName;
            _band.AutoFillDown = true;

            _band.AppearanceHeader.Options.UseFont = true;
            _band.AppearanceHeader.FontStyleDelta  = FontStyle.Bold;

            _band.AppearanceHeader.Options.UseTextOptions = true;
            _band.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            _band.AppearanceHeader.FontSizeDelta          = 1;

            _band.OptionsBand.AllowSize = true;

            for (int i_NoOfColumns = 0; i_NoOfColumns < _NoOfColumns; i_NoOfColumns++)
            {
                _band.Columns.Add(CustomBandedGridColumn.CreateNewColumn("Column " + (i_NoOfColumns + 1)));
            }



            return(_band);
        }
Exemple #2
0
        public static CustomGridBand CreateNewGridBand_ForSuspension(string _BandName)
        {
            _band_CopyCoordinates         = new CustomGridBand();
            _band_CopyCoordinates.Name    = _BandName;
            _band_CopyCoordinates.Caption = "Copy Front Left Coordinates to Front Right";

            return(_band_CopyCoordinates);
        }
Exemple #3
0
        public static CustomBandedGridView CreateNewBandedGridView(int l_InputItem, int NoOfColumns, string _BandName)
        {
            bandedGridView      = new CustomBandedGridView();
            bandedGridView.Name = "Banded Grid View";

            band = CustomGridBand.CreateNewGridBand(NoOfColumns, _BandName);

            bandedGridView.Bands.Add(band);
            bandedGridView.OptionsView.ShowColumnHeaders = false;
            bandedGridView.OptionsCustomization.AllowQuickHideColumns = false;
            bandedGridView.OptionsView.ShowGroupPanel = false;


            return(bandedGridView);
        }