Why doesn't DataGrid display all the pillars loaded from DataTable?



  • 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 attempting to attach the data to the table DataGrid as follows:

         TableWindow(DataTable dTable)
    
            {
                InitializeComponent();
                this.dGrid.ItemsSource = dTable.DefaultView;        
                this.Show();
            }
    

    ...and even making sure the data are still downloaded:
    Контрольные значения

    ...I find that most of the data for some reason is not displayed at all:
    Отображение окна

    1. What's the reason for this sketch?
    2. Should I use it?
      DataTable to work with hundreds of thousands
      records? (producibility in the field leaves much to be desired)
    3. What class is best used for initialization mixed data tables?



  • Initiation of all DataGrid through its properties ItemsSource object DataTable sensitive to poles of the symbols (in this case) ',''.''/'and doesn't turn the poles in their headlines on the screen.

    P. S. The building initialization, as far as I understand, is impossible, except as an addition to the collection. DataGrid.Items object whose number of properties equals the number of table columns?




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2