问题一:TValueListEditor添加了一行,可是想把光标也定位在新的行上,如何控制光标的位置。
问题二:如何获取当前我光标所在的行的index。

解决方案 »

  1.   

    ValueListEditor.Row // 行
    ValueListEditor.Col // 列
      

  2.   

    ValueListEditor.Cells[Row, Col] // 单元格
      

  3.   

    访问当前所选行ValueListEditor1.Row 
    访问当前所选列ValueListEditor1.Col
      

  4.   

    ValueListEditor1当前行的值:ValueListEditor1.Keys[ValueListEditor1.Row]
      

  5.   

    1。可以在事件ValueListEditor1SelectCell(Sender: TObject; ACol,
      ARow: Integer; var CanSelect: Boolean) 获得,ACol,ARow:就是。
    2。ValueListEditor1.col; ValueListEditor1.row;问题解决的话,早点结帖。谢谢
      

  6.   

    1.添加一行。
    vle.InsertRow('key1','Value1',true);
    2.定义一个变量,自加。
      

  7.   

    procedure TForm1.Button1Click(Sender: TObject);
    begin
      ValueListEditor1.SetFocus;
      ValueListEditor1.InsertRow('a','b',true);
      ValueListEditor1.Row :=ValueListEditor1.RowCount-1;
    end;
    这个就可以实现光标在新增的位置了
      

  8.   

    ValueListEditor的光标是不会到第一列上去的警告你的另外一个id  NuclearBomb 不要进来拿分
      

  9.   

    TO militant(小猪油)
       不会吧,有前科??