ASP.Net Listview Databinding
ASP. Net ListView DataBinding
For presenting data like a list, we have tons of options in Asp.Net like ListView, DataList, Repeater, GridView, DropDownList, etc... Since we have a array of controls to choose from, the control can be selected based on specific requirements. For e.g. there is a need of selecting a single column then DropDownList is the perfect choice. If paging, sorting, edit is required then GridView will be the ideal choice. If just need to repeat some html code, then Repeater will work out to be better. This article is mainly focused on VB.Net ListView DataBinding.
DataBinding is quiet similar to GridView
DataBinding in ListView is almost similar to GridView. There is not much noticeable difference. There should be atleast one ItemPlaceHolder present in the template. By default the name of that is itemPlaceholder. Asp.Net allows us to custom name (id) also for easy reading.
Flexibility in rendering
This ListView is one of the best controls while flexibility is taken into consideration. With the concept of Item Place Holder, we can specify/ configure where the items have to be placed (rotated). In this example, I have made a two column liquid layout . The number of horizontal cells can be adjusted based on the resolution while resizing the browser.
Templates in ListView
There are few templates that will ease the development effort using ListView. If you have worked in GridView earlier, then basic templates in ListView are similar to GridView Templates. There are few special templates. I am highlighting the templates in the following list. These templates can be used customize rendering.
LayoutTemplate
GroupTemplate
ItemTemplate
AlternatingItemTemplate
EditItemTemplate
InsertItemTemplate
ItemSeparatorTemplate
GroupSeparatorTemplate
EmptyItemTemplate
EmptyDataTemplate
SelectedItemTemplate
Recent Posts
- Expert Tips to Make Your Hard Drive Backup More Effective in the Data Backup Process
- Handling Difficult Clients
- IATA Specifying the Rules of Air Transportation of Dangerous Goods
- Choose from a Wide Number of Birthday party Ideas
- How To Use “DSN-Less” ODBC Connections with RDO and DAO
- How to Make Your Direct Mail Envelopes Stand Out
- Accomplish Printing Precision At Bargain Costs With Generic Ink
- Free Indian classifieds – find anything, anywhere, anytime, just a click away
- Concerning Residential Movers
- Giant Bomb: Worst Case Scenario
Tag Cloud
-
application
ASP
assembly
career
class
code
company
constructor
control
Database
difference
Don
employer
error
Exception
hiring manager
information
interview
interviewer
job
job seekers
manager
method
NET
page
person
position
Process
property
question
quot
response
Serialization
Server
session state
site
SQL
State
system
time
type
void
way
web
work
BlogRoll
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009