Hi Mateusz,
Thanks for contacting Syncfusion support.
From the provided code snippets it seems that you have not bounded any ItemsSource for the SfDataGrid which is the cause for the issue. View and Items will be generated only after ItemsSource is set to the DataGrid. Kindly revert to us with more details about the scenario in your end and the need to load DataGrid without ItemsSource, if we have misunderstood the issue.
Regards,
Mohanram A.