AX 获得当前Grid的数据源的记录行数 sysQuery::CountTotal();方法 eg: int lines = sysQuery::CountTotal( SalesTable_ds.QueryRun());