Newbie Question: User selected query

H

Heath

I have a datagrid that is populated by a SQL query that is create by the
user. Their is a DropDOwnList and a textbox. This gives them the WHERE
fielld selection and the value that they want to query. This is executed
via a button.
First problem,
When I select a new page, the grid dissappears unless I call method for
the button, which rebinds the grid the second time ( once in the
SelectedPageIndexChange and secondly in the BtnGetNewAssets).

Second problem,
When I get to a page other than the first, and the users enters a new
query and fires the button event I get the error about the selectedpageindex
must be greater than zero or less than page count. I h ave tried to set the
index back to zero, but I get the error regardless.

Any ideas????
Heath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top