Answered by:
Formatting Deatailsview control

Question
-
User1866404511 posted
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.
Wednesday, August 10, 2011 6:40 AM
Answers
-
User-1188032534 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 10, 2011 8:53 AM
All replies
-
User-1188032534 posted
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
Wednesday, August 10, 2011 6:49 AM -
User1866404511 posted
thanks a lot Lazz.
Any other sugesstions..
Wednesday, August 10, 2011 8:26 AM -
User-1188032534 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 10, 2011 8:53 AM -
User-1974373719 posted
Check out this link may help you http://www.asp.net/learn/dataaccess/default.aspx
Thursday, August 11, 2011 12:41 AM -
User1866404511 posted
thanks a lot Lazz.
Friday, August 12, 2011 5:55 PM