开发者

How add Multiple selection Listbox to a cell in Excel

开发者 https://www.devze.com 2022-12-22 00:38 出处:网络
How do I add a Multiple selection list to an Excel spredsheet in each cell of one column. I need to be able to read the selected values in c#.

How do I add a Multiple selection list to an Excel spredsheet in each cell of one column. I need to be able to read the selected values in c#.

Looking for a managed code solution. CANNOT USE INTEROP

Anything that allows a multiple selection and the aability to read using OLEDB, currently using a listbox.

WE can only use ADO.NET & C#

The dropdown list must appear in each row and it's vaule shoul开发者_运维百科d be read from OLEDB.


You can use VSTO to create an Excel worksheet, add a ListBox, set it's SelectionMode to "MultiSimple" or MultiExtended". You can the write the code behind to create it however you like - on all rows, getting data from OLEDB, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号