Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

GridView behaving Strangely in an asp.net web page.

$
0
0
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?

Viewing all articles
Browse latest Browse all 3938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>