Exemplo n.º 1
0
        void AddCellItem(GroupSubItem item)
        {
            GroupCellItem sitem;

            for (int i = 0; i < 5; i++)
            {
                sitem      = new GroupCellItem();
                sitem.Text = "Cell Item " + i;


                item.SubItems.Add(sitem);
            }
        }
Exemplo n.º 2
0
        void AddSubItem(GroupItem item)
        {
            GroupSubItem sitem;

            for (int i = 0; i < 5; i++)
            {
                sitem      = new GroupSubItem();
                sitem.Text = "Sub Item " + i;
                if (i % 2 == 0)
                {
                    sitem.IsOpen = true;
                }
                AddCellItem(sitem);
                item.SubItems.Add(sitem);
            }
        }