Thank you in advance for any help!
I have a GridView on an aspx page with two criteria: From Date and To Date (both text boxes). There also is a Search button.
The GridView is bound to a SQL Data Source and the two text boxes are the two criteria for a stored procedure. There is no code-behind.
If I enter both From and To dates and click the Search button, the grid appears and clicking on a sortable column header resorts the grid.
If I enter neither dates and click the Search button, the grid appears. However, when I click a sortable column header, the grid disappears. If I click the Search button again, the grid reappears - and is sorted properly.
Can someone tell me why that occurs?
I have a GridView on an aspx page with two criteria: From Date and To Date (both text boxes). There also is a Search button.
The GridView is bound to a SQL Data Source and the two text boxes are the two criteria for a stored procedure. There is no code-behind.
If I enter both From and To dates and click the Search button, the grid appears and clicking on a sortable column header resorts the grid.
If I enter neither dates and click the Search button, the grid appears. However, when I click a sortable column header, the grid disappears. If I click the Search button again, the grid reappears - and is sorted properly.
Can someone tell me why that occurs?