March 19, 2008 at 6:56 am
Hi,
I set my DataGridView with the designer, pointed it to a stored procedure, which, worked, and this leaves me confused because I don't know how to do the next task..
I have a textbox, with a button. When the button is clicked, the text inside textbox is sent to the sql stored procedure, results come back, how do I update the DataGridView, where do I stick in the sqlDataReader results inside the dataGridView? I'm aware it has to be via code, but hey, which API?
Regards
March 19, 2008 at 7:53 am
You would probably have gotten quicker responses had you posted it in a Development forum and not Administering as this question really has nothing to do with SQL Server, but with .NET. That being said. The datagridview has DataSource and DataMember properties which you use to assign data to it. I believe, at least with the earlier .NET releases you need a datatable to bind to a datagridview, but that may have changed in 2005/2008.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply