Sha256: 42a1f6721e729c5eb593701a8b46f8dfaf13f0371b8dbdc1e5efb197de50f58a

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

using System;
using System.Linq;
using System.Windows.Forms;
using FizzWare.NBuilder;

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

        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

6 entries across 6 versions & 1 rubygems

Version Path
rautomation-0.13.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.12.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.11.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.10.0 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.9.4 ext/WindowsForms/WindowsForms/DataGridView.cs
rautomation-0.9.3 ext/WindowsForms/WindowsForms/DataGridView.cs