Hello
You need to assign properties: TColumnEh.DropDownBox.ListSource = NewDataSource (with NewDataSet) TColumnEh.DropDownBox.ListSourceAutoFilter = True TColumnEh.DropDownBox.ListSourceAutoFilterType = lsftContainsEh TColumnEh.DropDownBox.ListSourceAutoFilterAllColumns = True
DropDownBox.ListSourceAutoFilter = True. Enable filtering on typing (And search)
DropDownBox.ListSource must refer to the DataSource which DataSource.DataSet a separate DataSet that will filter the data.
DropDownBox.ListSourceAutoFilterType = lsftContainsEh To filter and search subtext inside field values
DropDownBox.ListSourceAutoFilterAllColumns To filter and search in all columns of DropedDownWindow
TColumnEh.LimitTextToListValues Set to False, to allow enter any text in the edit box that doesn't only start with text from display values.
Read also documetation: "EhLib Users Guide.doc" Section: Filtering data in drop-down lookup lists when typing
Look at the Demo project: Demos\LookupCombo.LookupFilter
_________________ Best regards EhLib Support Team
|