More refactoring
Support AutoRefresh and DataGrid to show  paged results.