Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.
Each time a sheet name is found I do a call to my old import method. That import method looks at the index for the sheet quantity and assigns it to a dataGridView based on that index.
E.g. if (i = 0) { dataGridView1.DataSource = dt } else if (i = 1) { dataGridView2.DataSource = dt } ... etc.
The problem I have now, is that on the 2nd call to the import method the code just dies after it runs da.Fill(dt). It never even checks the sheet index or assigns the data table to the datagridview. I even check to see if it gets to the end of the import method, but the flag is never triggered.
I didn't read your OP closely enough. If you are calling your import method from inside the sheetname code, you might be running into an open connection issue because the sheetname code does not call the close method until the finally block.
I shifted the code around so the Import method calls the sheetname method. Now on the 2nd da.Fill(dt) call I get the error "Too many fields defined." This may have been the problem all along. I will work on a fix for the error tomorrow.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.