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.

Specifying DataSource for e.g. AutoComplete

Thread ID:

Created:

Updated:

Platform:

Replies:

6221 Aug 5,2003 10:07 AM Aug 19,2003 11:27 AM General Discussion 3
loading
Tags: General Discussion
L.A.Marco
Asked On August 5, 2003 10:07 AM

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 09:04 AM

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

L.A.Marco
Replied On August 8, 2003 09:46 AM

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 11:27 AM

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

CONFIRMATION

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.

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.

;