JulienVan
asked on
Textbox autocompletion using values from a column of an Excel sheet with VSTO
Hi,
I'm developing an Excel add-in, and I'd like to parameterize the autocompletesource of a Textbox to use values from the column of a worksheet.
The problem is that the Excel file is always opened by the user and so I cannot use it as a data source with a standard connection.
I'd like to not reload all the values on each display of the textbox because it can become very long. Is there a way to use an opened Excel spreadsheet as a data source?
Or would it be possible to bind a DataTable on an opened Excel spreadsheet , and update it by detecting any modification in the sheet?
Thanks,
Julien
I'm developing an Excel add-in, and I'd like to parameterize the autocompletesource of a Textbox to use values from the column of a worksheet.
The problem is that the Excel file is always opened by the user and so I cannot use it as a data source with a standard connection.
I'd like to not reload all the values on each display of the textbox because it can become very long. Is there a way to use an opened Excel spreadsheet as a data source?
Or would it be possible to bind a DataTable on an opened Excel spreadsheet , and update it by detecting any modification in the sheet?
Thanks,
Julien
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll try this solution and come back after to tell you if it's working in my case.