We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ComboBox Values ???

Hi I am new with Syncfusion product,
I need to get the values of combobox created in excel file
I found
IComboBoxShape that contains SelectedValue and SelectedIndex
But not all the values.

Should I use another thing

here is my code
var xlApp = xl.Excel;
var wkbk = xlApp.Workbooks.Open(stream);
var sheet1 = wkbk.Worksheets[0];
var combobox = sheet1.ComboBoxes[0]

and after that????


1 Reply

MM Manikandan M Syncfusion Team January 17, 2012 04:31 PM UTC

Hi,

Thanks for using Syncfusion products.

Combobox value could be accessed by getting the range which combobox refers. We have created the samples for accessing values from Combobox and have attached the same.

Code snippet:
IRange range = comboBox2.ListFillRange;

Please let us know if you need any clarifications.

Thanks,
Manikandan.M





102262_aab59bf8.zip

Loader.
Live Chat Icon For mobile
Up arrow icon