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

Specifying DataSource for e.g. AutoComplete

Thread ID:





6221 Aug 5,2003 02:07 PM UTC Aug 19,2003 03:27 PM UTC General Discussion 3
Tags: General Discussion
Asked On August 5, 2003 02:07 PM UTC

Hi All, For AutoComplete in the designer mode I can specify the DataSource. I never really understood which list is populated in the DataSource drop down when selecting one in the designers mode. I've been trying to put on my form an item that implements IList or IListSource. But I really don't know how to do that with the designer. Or how to do that with just plain code. I appreciate any help. Regards, L.A.Marco

Arun Srinivasan [Syncfusion]
Replied On August 6, 2003 01:04 PM UTC

Hi L.A.Marco, In the AutoCompleteArrayDataSource sample that ships with Essential Tools, the function InitDataSource() demonstrates how you can use an ArrayList (which implements the IList interface) as the DataSource for the the AutoComplete Control. Thanks Arun

Replied On August 8, 2003 01:46 PM UTC

Hey Arun, I'm familiar with the example and I succeed to do it programmatically. It's just that with Studio 2002 I don't see it showing up in the designers view. L.A.Marco

Prakash S [Syncfusion]
Replied On August 19, 2003 03:27 PM UTC

Hi Marco, The VS.NET Toolbox displays only those Controls & Components that permit it do so using the DesignTimeVisible attribute. Besides, the standard Collection classes that implement the IList interface are neither Control or Component types and hence are not listed in the Toolbox. If you want to specify a custom IList implementation for the AutoComplete then it would be easiest to just create and add this class programmatically. If design-time support is crucial then you could very well add a custom class to your project that is a 'Component' and also implements the IList interface. You can now add this Component to the VS.NET Toolbox and once it's been added to the Component Tray it can be assigned to the AutoComplete control's DataSource property. Prakash Syncfusion


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon