Hi,
I am exporting data from a table to excel file after that i have to make a excel column as dropdownlist using c#.
Thanks & Regards,
Rahul Rao .
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jacke ElisPosted Jan 21, 2015, 7:20 AM
Rahul try this:
The code uses this C# library for excel files.
You can directly import your DataTables to excel in .NET and you can easily add DropDownList via DataValidation.
Manish Kumar ChoudharyPosted Nov 29, 2014, 3:36 AM
Hi Rahul Rao,
Read these links it helps you
http://www.c-sharpcorner.com/UploadFile/kbpatel/how-to-create-a-dropdown-list-to-an-excel-using-C-Sharp/
http://www.c-sharpcorner.com/Blogs/7482/retrieving-excel-data-and-binding-to-a-combobox-in-C-Sharp.aspx
Shweta LodhaPosted Nov 29, 2014, 3:25 AM
Please have a look at this:
https://social.msdn.microsoft.com/Forums/office/en-US/8470cf52-c96e-4bc1-af98-6e98022bc77e/how-to-create-dropdownlist-in-excel-on-the-fly-in-c?forum=vsto