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.
Unfortunately, activation email could not send to your email. Please try again.

How to create dependent dropdownlist using XlsIO?

XlsIO allows to create dependent dropdownlist in data validation using INDIRECT formula in data validation list source. The following steps illustrates with code snippets on how to achieve the requirement.

  1. Create named ranges for the range of cells. Here we have created the 4 Named Ranges and the following table describes the named ranges and its refer to ranges. Add meaningful values in these ranges.

 

Named Ranges

Range

Food

A2:A4

Pizza

B2:B5

PanCakes

C2:C3

Chinese

D2:D4

 

cid:image002.png@01D04A73.7A44FB60

 

  1. Choose a cell to create the dropdownlist and set the data validation. Here, we have selected the B8 Cell and applied data validation with list values which refers to a NamedRange (Food).
  2. Select a next cell to apply data validation which depends on the previous data validation list. Here, we have selected the cell “B10” and applied data validation with list type and assigned the list source as “=INDIRECT($B1)”. (INDIRECT function is used to return the reference, specified by the string from the drop down list).

 

C#

VB


You can find the sample here.

Article ID: Published Date: Last Revised Date: Platform: Control:
4210 03/03/2015 03/03/2015 Windows Forms XlsIO
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.