private void Form1_Load(object sender, EventArgs e) { DataTable sampledt = new DataTable(); string[][] sSource = { new string[] { "No", "1" }, new string[] { "No", "2" }, new string[] { "Name", "Kim Sook Hwan" } }; sampledt = DtCls.ArrayToDataTable(sSource); originGrid.DataSource = sampledt; }
public Form1() { InitializeComponent(); dtcls = new DtCls(); }