DataTable _fcDTable = new DataTable("DataTable: Frequency Converter"); // Инициализация столбцов таблицы _fcDTable.Columns.Add(_timeColumnName); _fcDTable.Columns[_timeColumnName].DataType = typeof(DateTime); foreach (string name in FCParametersStructure.getParametersNames()) { _fcDTable.Columns.Add(name); _fcDTable.Columns[name].DataType = typeof(int); }
When trying to bind data to a DataGrid
table as follows:
TableWindow(DataTable dTable) { InitializeComponent(); this.dGrid.ItemsSource = dTable.DefaultView; this.Show(); }
... and even making sure that the data is still loaded:
... I find that most of the data for some reason is not displayed at all:
- What is the reason for such a table drawing?
- Should I use
DataTable
in a situation where I have to work with hundreds of thousands of records? (scrolling performance leaves much to be desired) - Which class is better to use to initialize a non-one type data table?
DataRow row = _dTable.NewRow();
, obtained from theDataTable _dTable
with columns initialized from some liststring[]
. - Artyom Ionash