How do I get my datatable to get the following format:
England Germany Holland Spain Germany Russia Japan
England x
Germany x
Holland x
Spain x
Germany x
Russia x
Japan x
I did get some answers before, but that was with another way. I actually want my datatable to be used in this. Also it would be nice if you could help me out on how to display the input on the correct coordinates.
best regards
My table
DataTable Matrix = new DataTable();
Matrix.TableName = "Matrix";
Matrix.Columns.Add(new DataColumn("Ado"));
Matrix.Columns.Add(new DataColumn("Ajax", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("AZ", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("FC-GR", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("FC-TW", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("FC-U", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("Fey", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("Her", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("Nac", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("PSV", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("RKC", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("ROD", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("SC", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("Spa", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("Vit", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("VVV", System.Type.GetType("System.String")));
Matrix.Columns.Add(new DataColumn("WIL", System.Type.GetType("System.String")));
Matrix.Rows.Add("Ado Den Haag", System.Type.GetType("System.String"));
Matrix.Rows.Add("Ajax", System.Type.GetType("System.String"));
Matrix.Rows.Add("AZ", System.Type.GetType("System.String"));
Matrix.Rows.Add("FC Groningen", System.Type.GetType("System.String"));
Matrix.Rows.Add("FC Twente", System.Type.GetType("System.String"));
Matrix.Rows.Add("FC Utrecht", System.Type.GetType("System.String"));
Matrix.Rows.Add("Feyenoord", System.Type.GetType("System.String"));
Matrix.Rows.Add("Hercules Almelo", System.Type.GetType("System.String"));
Matrix.Rows.Add("NAC Breda", System.Type.GetType("System.String"));
Matrix.Rows.Add("PSV", System.Type.GetType("System.String"));
Matrix.Rows.Add("RKC Waalwijk", System.Type.GetType("System.String"));
Matrix.Rows.Add("Roda JC", System.Type.GetType("System.String"));
Matrix.Rows.Add("SC Heerenveen", System.Type.GetType("System.String"));
Matrix.Rows.Add("Sparta Rotterdam", System.Type.GetType("System.String"));
Matrix.Rows.Add("Vitesse", System.Type.GetType("System.String"));
Matrix.Rows.Add("VVV-Venlo", System.Type.GetType("System.String"));
Matrix.Rows.Add("Willem II", System.Type.GetType("System.String"));
I had a project was printing on dot matrix Printers ,i changed my code it can help you for displaying create an console project and replace the code with mine