如题,请各位高手帮忙,如分不够可再加,谢谢

解决方案 »

  1.   


    begin
      ComboBox1.Sorted := true;
    end;
      

  2.   

    ComboBox的值列表Items是一个TStrings字符串列表
    没有查到TStrings有排序方法,Sort是在其子类TStringList中实现的直接
    ComboBox.Sorted := True;
      

  3.   

    我加过,不行,我是加在OnDropDown事件中。有没有自排序的过程代码
      

  4.   

    不要加在OnDropDown中。加在前面。
      

  5.   

    这个排序是按什么字段排序的?如果用DisplayMember和ValueMember绑定两个字段当显示值和实际值,想按ValueMember排序该怎么写?