Beispiel #1
0
        private SortableHeader CreateSortable()
        {
            SortableHeader result = new SortableHeader(teeGrid1.Header.Changed);

            result.Format.Brush.Color = Color.Red;
            result.Format.Brush.Show();

            result.CanSort   += CanSortBy;
            result.SortBy    += SortBy;
            result.SortState += SortState;

            return(result);
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();
            this.BackColor = Color.White;
            Steema.TeeGrid.Themes.GridThemes.SilverFlat.ApplyTo(tTeeGrid1.Grid);
            tTeeGrid1.Rows.RowLines.Visible = true;

            AddRandomData();

            tTeeGrid1.Data = new VirtualListData <TLocation>(Locations);

            SortableHeader header = tTeeGrid1.Header.SortRender as SortableHeader;

            header.SortBy += Header_SortBy;

            tTeeGrid1.Rows.Height.Automatic = false;
            tTeeGrid1.Rows.Height.Value     = 200;
            tChart1.Panel.Bevel.Inner       = Steema.TeeChart.Drawing.BevelStyles.None;
            tChart1.Panel.Bevel.Outer       = Steema.TeeChart.Drawing.BevelStyles.None;
            tChart1.Series.Add(typeof(Bar));
            tChart1[0].ColorEach = true;

            PrepareChartColumn();
        }