Exemple #1
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            // configure grid
            _flex.Cols.Count = 2;
            _flex.Cols.Fixed = 0;
            _flex.Rows.Count = 1;

            C1.Win.C1FlexGrid.CellStyle s = _flex.Styles[C1.Win.C1FlexGrid.CellStyleEnum.Subtotal0];
            s.BackColor = _flex.Styles.Normal.BackColor;
            s.ForeColor = _flex.Styles.Normal.ForeColor;

            // populate grid
            _flex[0, 0] = "Type";
            _flex[0, 1] = "Item";
            _flex.AddItem("Fruit\tApple");
            _flex.AddItem("Fruit\tBanana");
            _flex.AddItem("Fruit\tOrange");
            _flex.AddItem("Fruit\tGrape");
            _flex.AddItem("Meat\tSteak");
            _flex.AddItem("Meat\tHamburger");
            _flex.AddItem("Meat\tRib");
            _flex.AddItem("Meat\tPot Roast");
            _flex.AddItem("Salad\tGreen");
            _flex.AddItem("Salad\tCaesar");
            _flex.AddItem("Salad\tGreek");
            _flex.AddItem("Salad\tSpinach");
        }