J
Jumping Matt Flash
The code i'm writing is using VB .NET and is for a web service returning a
dataset, which is in turn to be used by an ASP .NET application displaying a
datagrid.
I'm currently populating a datagrid using a "select top 1 column 1, column2,
column3 from tblTable" statement. As there will only ever be one row
returned I want to be able to to switch the column names to be row1 and the
column values to be row 2
i.e. select house, street, state from table addresses
16, Washington Way, NYC
to be displayed as
ELEM VAL
------- -------
House 16
Street Washington Way
State NYC
To make this translation easiest i want to be able to do this using my web
service. Any ideas as to how i can manipulate my dataset in such a way?
TIA,
Matt
dataset, which is in turn to be used by an ASP .NET application displaying a
datagrid.
I'm currently populating a datagrid using a "select top 1 column 1, column2,
column3 from tblTable" statement. As there will only ever be one row
returned I want to be able to to switch the column names to be row1 and the
column values to be row 2
i.e. select house, street, state from table addresses
16, Washington Way, NYC
to be displayed as
ELEM VAL
------- -------
House 16
Street Washington Way
State NYC
To make this translation easiest i want to be able to do this using my web
service. Any ideas as to how i can manipulate my dataset in such a way?
TIA,
Matt