怎样对stringgird进行隔行多选,解决马上给分!!!!

解决方案 »

  1.   

    DataGrid1.Options := DataGrid1.Options + [dgMultiSelect];
      

  2.   

    StringGrid 没有 MultiSelect。
    帮你看看。
      

  3.   

    靠,连TMS都没有实现,帮你顶。
      

  4.   

    stringgird支持连续多选,但不支持隔行多选.别无他法,改用其他控件吧.
      

  5.   

    把选中的行标记上,在ondrawcell中自己画
    反正只要用户看着象多选就可以了,怎么处理是你自己的事
      

  6.   

    一般设置listview的属性如下:
    GridLines := True
    ViewStyle :=vsReport;
    MultiSelect :=True;
    RowSelect :=True;
      

  7.   

    一般设置listview的属性如下:
    GridLines := True
    ViewStyle :=vsReport;
    MultiSelect :=True;
    RowSelect :=True;
      

  8.   

    这里有很多:
    http://www.torry.net/stringgrids.htm这个可以:
    TSortGrid v.2.00  FWS 381 Kb 02.08.01  By Karsten Bendsen. TSortGrid is a highly improved TStringGrid, lots of new or improved functions, events and properties, to name a few: 
    Search and Filter: Easy and fast, fully customable 
    Sort: Different sorts, like numbers, date, your own 
    Load & Save: Save to file and registry, export to csv 
    MultiSelect: Using ctrl and shift                       ///////这里
    Components: Add button, picklist or checkbox to a cell 
    Paint: Draw cells in lot of different ways 
    Print: Print the grid, with preview 
    Auto size Columns and much more.... 
     
      

  9.   

    一般设置listview的属性如下,就可以达到你要的效果:
    GridLines := True
    ViewStyle :=vsReport;
    MultiSelect :=True;
    RowSelect :=True;
      

  10.   

    或者干脆就用ListView实现吧,足够满足你的要求的.