Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以走很长一段路,遍历每一行,得到一个TRectfrom CellRect(col, row),然后查询它的Statefor gdSelected...
TRect
CellRect(col, row)
State
gdSelected
但是是否有更快的方法来获取当前选定行的行号(如果有)?
.Row 用于选定的行,.Col 用于选定的列
请看一看TStringGrid.Row。
TStringGrid.Row