as said by you i tried to populate the dropdown created from code
below code creates the dropdown for n no of rows
Worksheet.DropDowns.Add(Worksheet.Range(ExcRow, ExcRow).Left, Worksheet.Range(ExcRow, ExcRow).Top - 1, Worksheet.Range(ExcRow, ExcRow).Width, Worksheet.Range(ExcRow, ExcRow).Height).caption = ""
but i get tge error as
Unable to cast COM object of type 'System.__ComObject' to class type 'System.Web.UI.WebControls.DropDownList'. Instances of types that represent COM components cannot be cast
to types that do not represent COM
Bookmarks