You need to associate a DataGrid with a sheet or database table. This is how I associate a grid with a sheet.
public List<CopiesOut> _bookList = new List<CopiesOut>(); public List<CopiesOut> BookList { get { return _bookList; } set { _bookList = value; OnPropertyChange("BookList"); } } ItemsSource="{ Binding Path=BookList, Mode=OneWayToSource, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, BindsDirectlyToSource=True, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged }"
But when the BookList is changed by the button, the grid does not change. I tried to change the sheet in the constructor, absolutely nothing is displayed on the grid.
In this regard, tell me how to correctly bind all the sheets to the data grid there, leave good articles, tutorials. Thank you in advance for your help.