Click here to Skip to main content
15,170,621 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1>create a drop down list in excel using c# code programmatically.

2>generate the dynamic header in excel sheet,

but excel sheet issue
1> not add drop down dynamically in excel
2> download excel sheet dynaimcally but uploading time
create d issue (External table is not in the expected format.)

thanks..

What I have tried:

create a drop down list in excel using c# code programmatically
Posted
Updated 18-Apr-16 23:33pm
v2
Comments
SujayC 16-Apr-16 7:23am
   
Are you using OpenXML or Microsoft.Office.Interop.Excel dll for generation of spreadsheet? Please share sample code that you have used.

1 solution

To create an excel dropdown list, you can use data validation, check this thread:

Apply Data Validation to Excel Cells in C#[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900