如何在FireMonkey中的TStringGrid中创建显示行号的列?
如果是使用LiveBinding,我想不出是怎么回事。
发布于 2013-03-05 05:20:53
表单/网格OnGetValue事件处理程序将该行作为其参数之一进行传递。只需验证该列是否为您想要的列,并返回行号。
function Form1.Grid1GetValue(const Row, Col: Integer): TValue;
begin
if Col = 0 then
Result := TValue.From<Integer>(Row);
end;https://stackoverflow.com/questions/15209050
复制相似问题