We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AddCopy a spreadsheet into a currently active control, but cannot invalidate

Thread ID:





144823 May 24,2019 10:28 AM UTC May 27,2019 01:14 PM UTC WinForms 1
Tags: Spreadsheet
Asked On May 24, 2019 10:28 AM UTC

Hi, I'm a first time user in Spreadsheet control. I wanted to do the following task;
1. read an excel file, copy its first sheet,
2. add it to currently active winform spreadsheet

I've done the first with XlsIO control, successfully get the first worksheet, and in my debug console, everything seems fine.
I then do the following (for the reference, I added the code into the form's OnLoad handler)

(let's say, my control is Spreadsheet myControl, my pickedup file was IWorksheet mySheet; )

myControl.Workbook.ActiveSheetIndex = 1;

Then now, on the debug console, everything looks fine. On the other hand, on UI, nothing happend.
Even worse, right clicking on the sheet will trigger null reference.

I then realize I need to invalidate the control to make it redraw. However, all my tries:

does not seem to make it work either.

My question is, 1. is it possible? 2. is there a better and recommended approach?

Thanks in advance.

Best wishes

Jagadeesan Pichaimuthu [Syncfusion]
Replied On May 27, 2019 01:14 PM UTC

Hi Junsoo, 
Thanks for using Syncfusion product. 
We are currently validating the reported problem in our end, so we will update you the more details on May 29th, 2019. 
We appreciate your patience until then. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon