Hi,
There are cases when the grid is sorted. In that request, i dont want to go to the database.
How ever, when the refresh button is pressed or the grid is loaded for the first time, I want to go to the database.
How can i identify the difference between these 2 requests.
Currently the signature of the function is
There are cases when the grid is sorted. In that request, i dont want to go to the database.
How ever, when the refresh button is pressed or the grid is loaded for the first time, I want to go to the database.
How can i identify the difference between these 2 requests.
Currently the signature of the function is
public
static List<Employee> getAllEmployee(string sortExpression)
{..}
comming from object datasource mapped to the grid
| <asp:ObjectDataSource ID="dsEmployee" runat="server" SelectMethod="getAllEmployee" |
| TypeName="Employee" DataObjectTypeName="Employee" |
| SortParameterName="sortExpression"></asp:ObjectDataSource> |