The complex databinding accepts ilist or ilistsource as the data source. "The error was originally a mistake.

Source: Internet
Author: User
"Complicated databinding accepts ilist or ilistsource as the data source" error originally caused by a mistake.

Release: Admin | category: C # technology | reference: 0 | browse:7

12 Jan 2010

 

Controls such as the datagridview class and ListBox support standard Windows form data binding models. This means that the data source can be any type that implements one of the following interfaces:

The ilist interface, including one-dimensional arrays, is also an arraylist interface.

Ilistsource interface, such as datatable and dataset class.

Ibindinglist interface, for example, bindinglist class.

Ibindinglistview interface, for example, bindingsource class.

If you use other things as the data source, the above error will occur. Here, my mistake is to use listbox1 as the data source, which should be this. listdata1
 

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.