FireMonkey中的Delphi XE4 stringgrid selectcell [英] Delphi XE4 stringgrid selectcell in FireMonkey

查看:90
本文介绍了FireMonkey中的Delphi XE4 stringgrid selectcell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在FireMonkey字符串网格中选择一个单元格时,是否有人知道如何检索列和行(换句话说,当单击一个单元格时,我们想知道正在选择哪个列/行)...?

Does anyone know how to retrieve the column and row when selecting a cell in a FireMonkey stringgrid (in other words, when clicking on a cell, we want to know which column/row is being selected)...?

我们正在使用Delphi XE4。

We are using Delphi XE4.

谢谢。

推荐答案

要获取当前行的索引,请使用已选择属性。

要获取当前列的索引,请使用 ColumnIndex 属性。

To get the index of the current Row, use the Selected property.
To get the index of the current Column, use the ColumnIndex property.

这篇关于FireMonkey中的Delphi XE4 stringgrid selectcell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆