现有两个页面A,B。B页面通过A页面打开。在B页面上有datagrid,我需要根据A页面上用户输入的条件在打开B页面时,使datagrid过滤出符合用户条件的记录。想请教高手什么方式最方便,什么方式效率最高?