Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

We've got a database with a set structure that we're accessing using a datagrid. The problem seems that the datagrid is set to read the columns of the database and display them in the datagrid as they are. We would like to be able to 'transpose' a column from the database into a row on the datagrid.

 

Our solution has been to use a table instead, creating datarowviews from the dataview and populating the table rows that way.

  • Moderators
Posted

No doubt that it can be done, iterate the datatable creating a row for every column found.

 

I still can't understand the reason for this design unless it's some sort of aggregate report or pivot table you want to setup you may be better off doing this in the database using strored procs and such.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...