Skip to main content

Microsoft Silverlight

Answered Question Is it possible to make the Columns as rows and Rows as columns in DatagridRSS Feed

(0)

vijayvvk
vijayvvk

Member

Member

0 points

5 Posts

Is it possible to make the Columns as rows and Rows as columns in Datagrid

Hi All, 

As per my requirement, I have to show columns Horizontally and rows Vertically. User will add Columns instead of rows. Can anyone let me know, how i can achieve this requirement.

Thank You.

Regards,

Vijay

Jac_P
Jac_P

Participant

Participant

1044 points

189 Posts

Re: Is it possible to make the Columns as rows and Rows as columns in Datagrid

Hi,

I really dont think any grid supports this.

What you can do is that : create a class with properties as transpose of your existing class, Convert the data to new format and then do the binding.

 

Thanks

Jac

Thanks
Jac

hemanth53
hemanth53

Member

Member

11 points

8 Posts

Re: Is it possible to make the Columns as rows and Rows as columns in Datagrid

You can also handle this in Database, if your requiremet suites..  fetching the records in the required structure Using PIVOT in SQL Server and then bind the grid.

Regards,

Kumar

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17234 points

1,466 Posts

Answered Question

Re: Is it possible to make the Columns as rows and Rows as columns in Datagrid

 Hi  Vijay,

vijayvvk:
As per my requirement, I have to show columns Horizontally and rows Vertically. User will add Columns instead of rows. Can anyone let me know, how i can achieve this requirement.
 

You can try to  use sivlerlight 3's Perspective Transforms to implement this.

AND you will notice, the text in datagrid has been  Transformed too.

So, we would suggest that you can try to use DataGridTemplateColumn  , you can find the controls in the  DataGridTemplateColumn, and then Transformed them after your Transformed the whole datagrid.

About the Perspective Transforms in silverlight 3, you can try to refer this link: http://www.silverlightshow.net/items/Perspective-3D-in-Silverlight-3.aspx

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities