I've a detailsview that has a lot of fields and I want to format it to be displayed horizontally not vertically, so each row may display 3 fields or more
Maybe it's possible to create a custom control which inherits from the DetailsView and override the render to write your own HTML instead. I haven't worked too much with the detailsview so I can't give any examples of how to do this though.
Interested In New Web UI Technologies? Then Visit My Blog To help others, don't forget to mark the post as answer if it answered your question.
Member
65 Points
227 Posts
Formatting Deatailsview control
Aug 10, 2011 06:40 AM|harreni|LINK
Hi Dears,
I've a detailsview that has a lot of fields and I want to format it to be displayed horizontally not vertically, so each row may display 3 fields or more
Could anyone help me.
Thanks in advance.
Contributor
2931 Points
738 Posts
Re: Formatting Deatailsview control
Aug 10, 2011 06:49 AM|Lazz. _|LINK
I don't think that's possible. A suggestion has been posted to microsoft about it though:
http://connect.microsoft.com/VisualStudio/feedback/details/104722/detailsview-layout
You probably have to create a custom control to do it.
Regards
To help others, don't forget to mark the post as answer if it answered your question.
Member
65 Points
227 Posts
Re: Formatting Deatailsview control
Aug 10, 2011 08:26 AM|harreni|LINK
thanks a lot Lazz.
Any other sugesstions..
Contributor
2931 Points
738 Posts
Re: Formatting Deatailsview control
Aug 10, 2011 08:53 AM|Lazz. _|LINK
You could create a custom databound control yourself. This article might help:
http://msdn.microsoft.com/en-us/library/ms366539.aspx
Maybe it's possible to create a custom control which inherits from the DetailsView and override the render to write your own HTML instead. I haven't worked too much with the detailsview so I can't give any examples of how to do this though.
To help others, don't forget to mark the post as answer if it answered your question.
Member
151 Points
119 Posts
Re: Formatting Deatailsview control
Aug 11, 2011 12:41 AM|muhammed|LINK
Check out this link may help you http://www.asp.net/learn/dataaccess/default.aspx
Member
65 Points
227 Posts
Re: Formatting Deatailsview control
Aug 12, 2011 05:55 PM|harreni|LINK
thanks a lot Lazz.