locked
How to custom ListView RRS feed

  • Question

  • User-1452774550 posted

    I want to create a custom ListView control with flexibility of Templates, sorting and paging. Please help me!

    Thanks in advance!

    Monday, August 15, 2011 2:06 AM

All replies

  • User-1452774550 posted

    Thanks for your reply. But I want to know how to create a custom ListView control.

    Monday, August 15, 2011 3:15 AM
  • User3866881 posted

    Thanks for your reply. But I want to know how to create a custom ListView control.

    Hello:)

    In fact I think you can do what the 2nd man's link's contents. And then create a Custom Control (*.ascx) as an Item, then throw the ListView inside, that's what you want. Then if you want to publish this kind of ascx control to the public on the ToolBox, plz export accroding to this article:

    http://msdn.microsoft.com/en-us/library/aa479318.aspx

    Tuesday, August 16, 2011 9:16 PM
  • User-1452774550 posted

    Hi,

    I want to create a custom ListView by creating a class inherit ListView control.

    Wednesday, August 17, 2011 1:39 AM
  • User3866881 posted

    Yes, I know what you want. The reason why I want you to do an ascx control is because if you are a beginner who begins to do the task seems to be difficult. So using asax control it's easy for you to design with UI, just like what you "drag and drop" as usual. And you can use Wizard to make the whole ListView Pagable and Sortable. And then export it as a general published control.

    Wednesday, August 17, 2011 1:56 AM
  • User-1452774550 posted

    Thanks, but if you can provide some tutorial or sample of how to custom ListView, it really be appreciated!

    Wednesday, August 17, 2011 5:27 AM
  • User3866881 posted

    Thanks, but if you can provide some tutorial or sample of how to custom ListView, it really be appreciated!

    For a very very detailled information of Customized ListView with making it pagable, selectable or sortable. You can read the series of articles concerning about this kind of problems at: http://www.4guysfromrolla.com/articles/021308-1.aspx

    Wednesday, August 17, 2011 9:10 PM
  • User1260905144 posted

    All answers are off the mark.  

    The man asked how to derive from a ListView with an example. This is needed if, for example, one is trying to load different item templates in the same list view based on some rule.

    He did not ask how to customize the existing ListView control. 

    Friday, February 22, 2013 10:34 AM