这样写
DataTables("表A").LoadFilter = "编号 in (select max(编号) from {表A} group by 类别)"DataTables("表A").Load