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.

AutoComplete and dynamic DataSource

Thread ID:

Created:

Updated:

Platform:

Replies:

53872 Dec 21,2006 01:50 PM Dec 22,2006 05:26 AM Windows Forms 2
loading
Tags: Tools
Mark Atkinson
Asked On December 21, 2006 01:50 PM

It appears that once the DataSource is set for an AutoComplete (wired to a TextBox), the corresponding drop down list doesn't change.
In my case, the AutoComplete's DataSource is a DataView that changes frequently (rows get merged, filter changes, etc). Is there a way to keep the AutoComplete synched with the current state of the DataSource?

For example, if I have a DataView whose table has one row in it, then I set the AutoComplete's DataSource to that DataView, I only ever see the one row - even though the DataView may have more rows at some point.
I tried the RefreshColumns method (caused some exceptions). I wonder if re-setting the DataSource would work.

Mark Atkinson
Replied On December 21, 2006 01:55 PM

I see in an older post that the SetTableData method seems to be what I'm looking for.

Thanks all the same and Happy Holidays!

>It appears that once the DataSource is set for an AutoComplete (wired to a TextBox), the corresponding drop down list doesn't change.
In my case, the AutoComplete's DataSource is a DataView that changes frequently (rows get merged, filter changes, etc). Is there a way to keep the AutoComplete synched with the current state of the DataSource?

For example, if I have a DataView whose table has one row in it, then I set the AutoComplete's DataSource to that DataView, I only ever see the one row - even though the DataView may have more rows at some point.
I tried the RefreshColumns method (caused some exceptions). I wonder if re-setting the DataSource would work.

Anupama Roy [Syncfusion]
Replied On December 22, 2006 05:26 AM

Hi Mark,

We are glad to hear that the problem is resolved.

Happy holidays to you too!

Best Regards,

Anu.


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.

;