Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            ListViewWithLessSuck lv = new ListViewWithLessSuck();

            lv.GridLines = true;
            Controls.Add(lv);

            for (int i = 0; i < 3; ++i)
            {
                lv.Columns.Add("Column");
            }

            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < 100; ++i)
            {
                sb.Append((char)('A' + (i % 26)));
            }

            for (int i = 0; i < 200; ++i)
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Text = sb.ToString();
                lvi.SubItems.Add("0");
                lvi.SubItems.Add("0");
                lv.Items.Add(lvi);
            }
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            ListViewWithLessSuck lv = new ListViewWithLessSuck();
            lv.GridLines = true;
            Controls.Add(lv);

            for (int i = 0; i < 3; ++i)
                lv.Columns.Add("Column");

            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 100; ++i)
                sb.Append((char)('A' + (i % 26)));

            for (int i = 0; i < 200; ++i)
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Text = sb.ToString();
                lvi.SubItems.Add("0");
                lvi.SubItems.Add("0");
                lv.Items.Add(lvi);
            }

        }