I have successfully dragged and dropped tables onto the VS.net designer to subsequently populate controls with their data. When I drag the table onto the designer, VS.net creates a connection and data adapter and shows them both on the designer. I then generate a dataset (also using the designer) from the data adapter. The only thing that I write in my code is a line like [tt]SqlDataAdapter1.Fill(Dataset1)[/tt]
I now want to drag and drop a stored procedure onto the designer. When I do that, it creates a connection and a command, and displays those two objects in the designer. How do I then fill a control from there? Must I create a dataset - or is there some way to do it automagically - just like there is when using a table directly?
Thanks!
Lazer![[rainbow] [rainbow] [rainbow]](/data/assets/smilies/rainbow.gif)
I now want to drag and drop a stored procedure onto the designer. When I do that, it creates a connection and a command, and displays those two objects in the designer. How do I then fill a control from there? Must I create a dataset - or is there some way to do it automagically - just like there is when using a table directly?
Thanks!
Lazer
![[rainbow] [rainbow] [rainbow]](/data/assets/smilies/rainbow.gif)