Not Like the other controls,If you look at the ListView properties , you will not find a style related properties ( like PagerStyle,ItemStyle,AlternaterItemStyle...) , this is because ListView give the developers the flexibility to style it's layout as they
want.
And styling the ListView means applying css classes for the html controls that will be used to implmenet it's layout and look.
So i beleive the Creating a skin for the ListView is not practical at all.You will just need to create a css file and place it under your theme folder and then place all the ListView css classes there.
If you still want to go for it.. Refer these links:
Thank you. Very good information. And sorry about the duplicate thread. I am not used to this site as for as the forum goes. I have used different turorials on here but until recently, I have not been involved in forums.
LearningToFl...
Member
1 Points
17 Posts
ListView
Nov 23, 2012 11:35 PM|LINK
I'm sorry. I am trying to style a list view with a .skin file. Not a DetailsView.
How can I style a ListView control.
chaaraan
Contributor
2170 Points
484 Posts
Re: ListView
Nov 24, 2012 02:05 AM|LINK
Hi
try this link:
http://chanmingman.wordpress.com/2011/02/16/applying-cascading-style-sheet-css-to-listview-asp-net-code-and-video/
Regards,
charan
geniusvishal
Star
14308 Points
2821 Posts
Re: ListView
Nov 24, 2012 03:59 AM|LINK
Not Like the other controls,If you look at the ListView properties , you will not find a style related properties ( like PagerStyle,ItemStyle,AlternaterItemStyle...) , this is because ListView give the developers the flexibility to style it's layout as they want.
And styling the ListView means applying css classes for the html controls that will be used to implmenet it's layout and look.
So i beleive the Creating a skin for the ListView is not practical at all.You will just need to create a css file and place it under your theme folder and then place all the ListView css classes there.
If you still want to go for it.. Refer these links:
http://mattberseth.com/blog/listview/
http://mattberseth.com/blog/2008/06/4_new_grouping_grid_skins_vist.html
http://mattberseth.com/blog/2008/06/creating_a_simple_dashboard_us.html
My Website
www.dotnetvishal.com
LearningToFl...
Member
1 Points
17 Posts
Re: ListView
Nov 24, 2012 03:41 PM|LINK
Thank you. Very good information. And sorry about the duplicate thread. I am not used to this site as for as the forum goes. I have used different turorials on here but until recently, I have not been involved in forums.
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: ListView
Nov 27, 2012 07:53 AM|LINK
This another simpler approach: http://weblogs.asp.net/bleroy/archive/2008/07/23/alternating-styles-in-listview-without-alternatingitemtemplate.aspx
Feedback to us
Develop and promote your apps in Windows Store