如何在DBGrid中实现像IE地址栏那样检索数据库数据?分不够再加!

解决方案 »

  1.   

    我知道ComboBox有那样的功能
    AutoComplete property (TCustomComboBox)TCustomComboBox See alsoDelphi syntax:property AutoComplete: Boolean;C++ syntax:_property bool AutoComplete = {read=GetAutoComplete, write SetAutoComplete, default=true};DescriptionWhen AutoComplete is true, the combo box responds to user keystrokes by searching the Items property array for the first item that matches the string entered so far. If it finds an item that begins with the prefix typed so far, the combo box selects that item, 揷ompleting?the user抯 typing. If the user continues to type, selection may move to another, later, item, as the currently typed prefix no longer matches the initial AutoComplete selection. If the user types a string that is not the prefix of a string in the combo box, the string is taken as a unique entry and none of the items in the list are selected.When AutoComplete is false, this feature is disabled. Strings that the user types are taken literally, with no attempt to match them to a string in the combo box. Setting AutoComplete to false is necessary if you want to allow the user to enter a value that is not in the Items list but that is a prefix on one of the items.
      

  2.   

    我只是想在DBGRID中输入数据时实现模糊查找又方便用户录入!
      

  3.   

    要控制方便就不用DBGrid
    用DBLookUpComboBox也这类的可以阿