Textbox autocompletion using values from a column of an Excel sheet with VSTO
Posted on 2009-07-07
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?