Sean Lange (1/28/2013)
OK easy enough. As I said previously you will need to use an event of the button. Since you want this to happen when the user clicks the button, you will use the click event.Just add code to your click event to run your query. Stick the results of your query into a datatable and bind your gridview to the datatable.
Thanks Sean,
Do I need to add the code to the 'OnClientClick' property ? This is the only property I can see on the list.
Also, I cannot find the component 'datatable', is it the same as 'Table' ?
lastly, do you refer to gridview as the component or as a property ?
Sorry for the botheration.
Thanks.