SteveInBeloit
Well-known member
- Joined
- May 22, 2006
- Messages
- 132
- Programming Experience
- 10+
Hello,
I am trying to fill two datagrids on my form from stored procedures. I have not done this before (datagrids).
I opened Server Exp. and dragged my stored proc onto the form. I can see in generated code this gave me my connection string, and the command set to me stored proc. It also added the parameters.
Now what I think I need to do is in the load of the form, set the parameters value, make a sqldataadapter, make a dataset, and bind a datagrid to the dataset. I think. I am unsure how to make the dataset and bind the datagrid to it.
I keep going through the examples, but they all deal with one particular table, not stored procs. I can't seem to make it work with the stored procs.
Any help is really appriciated.
Thanks,
Steve
I am trying to fill two datagrids on my form from stored procedures. I have not done this before (datagrids).
I opened Server Exp. and dragged my stored proc onto the form. I can see in generated code this gave me my connection string, and the command set to me stored proc. It also added the parameters.
Now what I think I need to do is in the load of the form, set the parameters value, make a sqldataadapter, make a dataset, and bind a datagrid to the dataset. I think. I am unsure how to make the dataset and bind the datagrid to it.
I keep going through the examples, but they all deal with one particular table, not stored procs. I can't seem to make it work with the stored procs.
Any help is really appriciated.
Thanks,
Steve