I\'m using MVVM for my project and I\'m trying to bind a table from my database with a DataGrid. But when I run my application datagrid is empty.
MainWindow.
Lecturers is a field, but data binding works with properties only. Try declaring Lecturers like:
Lecturers
public ObservableCollection Lecturers { get; set; }