private void button1_Click(object sender, EventArgs e) { List<Customer> CustList = new List<Customer>(); CustList.Add(new Customer() { Cust_id = int.Parse(textBox1.Text), Interarrival = int.Parse(textBox2.Text), ServiceTime = int.Parse(textBox3.Text) }); dataGridView2.DataSource = CustList; dataGridView2.Refresh(); }
dataGridView2.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)