Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
506
DataGridCommand problem
posted

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)