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
640
Trigger AddNewCore after pressing Plus (Add Record)
posted

Hi there,

I'm trying to get XamDataGrid to trigger AddNewCore after pressing the Plus.

With the code provided I am able to activate a new record after pressing Plus but AddNewCore is not called at this time.

What can I do to create this behaviour?

Thanks in advance.

Code:

 

dataGrid.RecordActivated += new EventHandler<Infragistics.Windows.DataPresenter.Events.RecordActivatedEventArgs>(dataGrid_RecordActivated);            
       

        void dataGrid_RecordActivated(object sender, Infragistics.Windows.DataPresenter.Events.RecordActivatedEventArgs e)
        {
            (dataGrid.ActiveRecord as DataRecord).Cells[0].IsActive = true;
            dataGrid.ExecuteCommand(DataPresenterCommands.StartEditMode);
        }


 

Parents
  • 69686
    posted

    Hello,

    I tried your code and it works correctly. The cell enters edit mode when the record selector is pressed. Can you please tell us which version and build of our controls you are using ?

    Thank you!

Reply Children