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
330
Save data in a cell before save workbook
posted

How to save data in a cell before save workbook. 

using (var ms = new MemoryStream())
{
   xamSpreadsheet.Workbook.Save(ms);
   ms.Position = 0;

}

But all latest changes in current cell not saved. Because cell in edit mode. How to end edit mode and save all changes before xamSpreadsheet.Workbook.Save(ms) ?

Parents
  • 2151
    Verified Answer
    Offline posted

    Hello Ig Ma,

     

    Thank you for your post. You can try invoking the ExitEditModeAndUpdateActiveCell command to have the xamSpreadsheet exit editing mode and commit the new value. For example:

     

    var command = new SpreadsheetCommand(SpreadsheetCommandType.ExitEditModeAndUpdateActiveCell);

    command.Execute(this.spreadSheet);

     

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

Reply Children