Hello guys,
I'm using Xamdatagrid.
How can I do a autocomplete grid like:
Autocomplete datasource from a Dataset.
Thank you all!
Hello Nguyen,
Thank you for the screenshot you have sent.
You can use an editor which supports the autocomplete functionality, e.g. XamMultiColumnComboEditor. You can add it to XamDataGrid using TemplateField's EditTemplate. You can bind both the XamDataGrid and the XamMultiColumnComboEditor to DataSet and use the XamMultiColumnComboEditor's FilterMode to set the search to be performed on FilterOnAllColumns or FilterOnPrimaryColumnOnly.
Note that in this scenario, since you are not using ObesrvableCollection or INotifyPropertyChanged, if you want to make a selection you will have to use an event to set it, for example SelectionChanged.
Using this approach I have created a small sample, please take a look at the attached file.
Dear Nick,
I am very happy to receive an early reply from you.
I followed your instructions but I have a problem:
Thank you very much!
The XamMultiColumnComboEditor and the shared XamComboEditor, which support the autocomplete functionality were introduced in later version (11.2) and also the Template field (14.2)
To be able to use the benefits of both of them I will suggest to upgrade your product. The 17.2 version has just been released, a week ago.
If you have further questions concerning this matter, please let me know.