Archive for January 11th, 2008
Displaying Long Texts Inside ListView Control
I really like the flexibility of data presentation with the ListView, and that is the reason why I have been posting about it so much lately. This post is actually a short tip about how to display long texts inside the ListView, which can be easily implemented to the GridView and Repeater controls as well.
I have created a sample Access database with a table named as “QAs” having ID, Question and Answer fields in it. You can find this database file in the download.
Let’s assume that this table is wanted to displayed as:

Then, Answer data should be placed in a Panel control with a fixed Height and Width values in both ItemTemplate and AlternatingItemTemplate templates:

Download
Sample code for this short tip is available in here.