Я этот код
public class Test
{
public string name;
public int age;
public Test (string name, int age)
{
this.name = name;
this.age = age;
}
}
private void button1_Click (object sender, EventArgs e)
{
List <Test> listTest = new List <Test> ();
listTest.Add (new Test ("Pavel", 30));
listTest.Add (new Test ("Dima", 48));
listTest.Add (new Test ("Vova", 48));
dataGridView1.DataSource = listTest;
}
DataGridView отображает три строки, но никакое значение не говорит мне, что я неправильно