Monthly 10K Mandatory--c# dropdown box linkage

Source: Internet
Author: User
drop-down box linkage

Many sites use the dropdown box linkage, is the first drop-down box does not select any items, the second drop-down box has no options. This approach is more cautious and tighter.

Below I will teach you how to do the dropdown box linkage:

first assign the option to the first drop-down box in the form's Load event

And then the first drop-down box has an option.

We then write the code for the second drop-down box in the selectedindexchanged () event of the first drop-down box (that is, double-click the drop-down box)

This way, as long as the first drop-down box is not selected, the second drop-down box will not have a selection!

Pull-down box linkage is like this, hope that the reader a little bit help!

Monthly 10K Mandatory--c# dropdown box linkage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.