Hi,
if I try this sequence the first time I've this exception
ObservableCollection<> list = new ...();datagrid.DataSource = list;datagrid.ExecuteCommand(DataPresenterCommands.RecordFirstOverall);
If I try to run this command after the form are loaded it works good.
It's my mistake?
Thks for help.
Sacha
Exception
NullPointerException
in Infragistics.Windows.DataPresenter.DataPresenterBase.ExecuteCommandImpl(ExecuteCommandInfo commandInfo, Boolean raiseEvents) in Infragistics.Windows.DataPresenter.DataPresenterBase.ExecuteCommand(RoutedCommand command)
Thks for information.
I will try your solution.
Hello Sacha,
It seems that the time that you are invoking this command is too early and the records are not yet generated. You can try FieldLayoutInitialized event of the Loaded event of the XamDataGrid.