Hi .
I'm using SpreadsheetControl in my application.
I have to import a datatable to Worksheet ( the sheet can be anything that the user selects ) .
SpreadsheetControl mySpeadsheetControl = Application.Current.MainWindow.FindName("mySpreadsheet") as SpreadsheetControl;
IWorksheet sheet = mySpeadsheetControl.ExcelProperties.WorkBook.ActiveSheet;
sheet.Activate();
sheet.ImportDataTable(myGridContents, true, 1, 1);
When I do like this, the view is not getting updated. But if I click on some other sheet and then come back to this original sheet the view will be updated. How can i resolve this ?
If I use the following method instead of "sheet.ImportDataTable(myGridContents, true, 1, 1);"
mySpeadsheetControl.ImportFromDataTable(myGridContents);
the view is getting updated immediately. But the problem with this is, whatever sheet I select , the changes happen only in Sheet1. Let me know if there is ant solution for this .
Thanks in advance.