在提一问,关于StringGrid(50分)

  • 主题发起人 小叶子
  • 开始时间

小叶子

Unregistered / Unconfirmed
GUEST, unregistred user!
在StringGrid中,我选中了某个单元格,怎样能得到这个单元格的行,列坐标值和单元格内容的值?
谢谢![:)]
 
在stringgrid的onSelectCell事件中
ARow,ACol为行和列的值
cell[arow,acol]为格子里的值.
 
x=stringgrid.row //这是行值
y=stringgrid.col //这是列值
edit.text:=stringgrid.cells[x,y] //这是单元格内容的值
 
在MouseDown事件里
Mousetocell(x,y,Acol,Arow)
ARow,ACol为行和列的值
cell[arow,acol]为格子里的值.
 
顶部