本人现需要将ListView中某一SubItem[0]项中的字体改为红色显示,请问如何解决!

解决方案 »

  1.   

    procedure TForm1.ListView1CustomDrawSubItem(Sender: TCustomListView;
      Item: TListItem; SubItem: Integer; State: TCustomDrawState;
      var DefaultDraw: Boolean);
    begin
      if SubItem = 0 then Sender.Canvas.Font.Color := clRed;
    end;
      

  2.   

    严重同意斑竹哥哥的!
    而且CustomDraw要打开
      

  3.   

    我想ListView应该可以做的,只不过用的人不多而已,我想请求各位大哥再帮我想想办法,用ListView的DrawItem事件可以解决吗?