Sha256: bfd9a67bcbf67b3a51e3afee9a4617e33f6308b58bea8f35720d5a74d3e66686

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

using System;
using System.Windows.Forms;
using FizzWare.NBuilder;
using UIA.Extensions;

namespace WindowsForms
{
    public partial class DataGridView : Form
    {
        public DataGridView()
        {
            InitializeComponent();
	        dataGridView1.AsTable();
        }

        public class Person
        {
            // ReSharper disable UnusedMember.Local
            public String FirstName { get; set; }
            public String LastName { get; set; }
            public int Age { get; set; }
            public String City { get; set; }
            public String State { get; set; }
            // ReSharper restore UnusedMember.Local
        }

        private void DataGridView_Load(object sender, EventArgs e)
        {
            var dataSource = new BindingSource();
            foreach (var person in Builder<Person>.CreateListOfSize(50).Build())
            {
                dataSource.Add(person);
            }
            dataGridView1.AutoGenerateColumns = true;
            dataGridView1.DataSource = dataSource;
        }

        private void buttonClose_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rautomation-1.1.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-1.0.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.17.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.16.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.15.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.14.1 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.14.0 ext/WindowsForms/WindowsForms/DataGridView.cs