In components TDBLookupComboboxEh and TColumnEh when the grid is connected to a field in a column of type Lookup has the ability to filter the data set from the drop-down lookup list when the data set in the lookup text editor.
In normal operation, the lookup text editor as you type with the keyboard software in the dropdown lookup list automatically goes to the entry that starts the typed text.
In the additional filtering of text, the program further filters the data so that the list are only the records that satisfy the typing.
Filtering can operate in two modes (lsftBeginsWithEh and lsftContainsEh):
While lsftBeginsWithEh, the program displays only those records where the beginning of the text in the list coincides with the beginning of the text in the editor. In this example, the list will show all records that have a company name begins with «Un». As you type, the number of entries in the list is reduced.
While lsftContainsEh program displays only records that have the typed text is in any position of the first column of the combo box. In this case, the found text is highlighted in color.
To filter the data in drop-down lists to lookup:
Copyright (c) 1998-2013. All rights reserved.
|
What do you think about this topic? Send feedback!
|