I am trying to bind data to my DataGridView. (However, this is the easy explanation.) Background on what I am trying to accomplish: I have a rather large program here. This part of the code uses a DataGridView to display the data I have read and parsed (from another program through an Interop (not sql)). I bind the data using something like this: private DataTable ConvertListToDataTable(List<List<object>> list) { DataTable table = new DataTable(); for (int i = 0; i < MyList.Count; i++) { table.Columns.Add(MyList[i], typeof(string)); } table.Columns.Add("", typeof(object)); // Add rows data List<object[]> tObj = new List<object[]>(); for (int i …

Member Avatar
Member Avatar
+0 forum 4

The End.