To Browse Table data in axapta by code you can try following trick. Systablebrowser is Ax system class on which run method used to open table.
SysTableBrowser _sysTableBrowser = new SysTableBrowser();
;
_sysTableBrowser.run(tablenum(SalesTable));
SysTableBrowser _sysTableBrowser = new SysTableBrowser();
;
_sysTableBrowser.run(tablenum(SalesTable));