c# - Get data from Stored Procedure without knowing the amount of columns -


i making web application in asp.net using c# , linq.

i have made stored procedure converts result set pivot table , returns 'pivoted' result.

how can select result in linq statement , attach datagridview?

for example:

number     question               answer 1          how old        15 1          live      belgium 1          what's name       dennis 2          how old        19 2          live      germany 2          what's name       tom 3          how old        26 3          live      holland 3          what's name       gary 

becomes:

number       how old       live       what's name 1            15                    belgium                 dennis  2            19                    germany                 tom 3            26                    holland                 gary 

thanks

you cannot make using linq. , in case don't think actyally need it. make data transformations inside app, not in stored proc. if anyway think possible way work data, recommend use low level sqlclient approach (here example)


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -