除了设置DBGridEh控件的showhint属性为true,然后设置需要显示自动提示的字段的ToolTips属性为True外,还需要写什么代码吗?

解决方案 »

  1.   

    文不对题,showhint和排序 有什么关系
      

  2.   

    默认就是可以点击排序的,如果没有设置DBGridEh1.AutoSort := True;
      

  3.   

    用ADO时排序设置:1、dghAutoSortMarking和dghMultiSortMarking设为True.
    2、所有字段的TitleButton设为True.
    3、uses
      EhlibADO;
      

  4.   

    Delphi dbgrideh如何实现点击标题排序:
     
    数据源为adoQuery
     
    1、首先设置dbGridEh里需要排序的字段的Title->Titlebutton属性为true2、设置dgGridEh的optionsEh->dbhautoSortMarking属性为true3、在dbGridEh的ontitleButtonClick事件里面判断。procedure Tfrmmain.dbgGridEh1TitleBtnClick(Sender: TObject; ACol: Integer;
      Column: TColumnEh);
    begin
          if column.Title.SortMarker=smdowneh then
             adoQuery1.Sort :=column.FieldName
       else
    ...