It might help you to start,
namespace DataGridViewTest
{
using System;
using System.Collections.Generic;
using System.Windows.Forms;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
MyStruct test1 = new MyStruct()
{
One = 2,
Two = 3
};
List<MyStruct> list = new List<MyStruct>();
list.Add(test1);
dataGridView1.DataSource = list;
}
}
public struct MyStruct
{
public int One { get; set; }
public int Two { get; set; }
}
}
:)