谢谢

解决方案 »

  1.   

    没发现
    但我发现COMBOBOX从文件里读出来的字段会让它的ITEMINDEX属性失效
      

  2.   

    我看Delphi帮助中有:
    Do not write an OnDrawDataCell event handler. OnDrawDataCell is obsolete and included for backward compatibility. Instead, write an OnDrawColumnCell event handler.所以我一般用后者OnDrawColumnCell ,用后者试试看!
      

  3.   

    OnDrawDataCell是为了兼容早期DELPHI版本而留下的,现在一般用OnDrawColumnCell为好