I need to insert data from array to a DataGridView, but when I give handle to DataGridView from list, everything what I get is count of elements in array.
public static class Globalne
{
public static List<string> Mena = new List<string>();
public static string[] stringy = { "1", "2", "3", "4", "5" };
}
This is the program
private void Form1_Load(object sender, EventArgs e)
{
dataGridView1.ColumnCount = 3;
dataGridView1.Columns[0].Name = "Name";
dataGridView1.Columns[1].Name = "Surname";
dataGridView1.DataSource = Globalne.stringy;
}
