GridView: Handle multiple fields/columns returned from a Stored Procedure

P

pichula

I recently started with .NET and C#.

I have a stored proc in SQL Server that returns a dynamic/variable set
of columns depending on the parameter I pass. I'd like to display the
information in a gridviewand be able to show the column header names
correctly.


Is it possible to do this with a GridView?


Thanks for any help/suggestions I can get.


Pichula
 
C

chanmm

Do it with a DataSet and bind your DataGridView to the DataSet will be
easier.

chanmm
 

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

Top