I import from a text file with delimiters lines, the values of which are then converted to double.
var List<double[]> inData = new List<double[]>(); var line = reader.ReadLine(); if (line != null) { var elements = line.Split(separator); if (elements.Length!=0) { double[] converted = ToDoubleFromString(elements); //конверчу из строки в дабл if (converted != null) inData.Add(converted); } DataGrid1.ItemsSource = inData; }
When attempting to specify a DataGrid1.ItemsSource, the values are not displayed in the datagrid, but information about the structure of the array is displayed. How to display the values? I tried to translate it into a double [,] matrix, but the DataGrid does not display it either.