Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid view, how to set the height of all rows to specific height regardless of the amount of data

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have a grid displaying comments, like 200 words and if there are a lot of words the row height is huge? so tryign to view a lot of records is difficult.
how can the row height be set.
I tried these but nothing works >
this grid is databound using a SQLDataSource.

If I only return the first 50 characters and they need to edit the info, I have to write code to go get the whole string. too much work.


DougP
 
If I only return the first 50 characters and they need to edit the info, I have to write code to go get the whole string. too much work.

What I do in this situation is to get the whole string up front, which I assume you are already doing. Then, in the grid, I only display x characters with a "... more ... ": ex:

Code:
this is the column with lots of data and [b][red]... more ... [/red][/b]

I use a label control. I assign the tooltip of the label to the whole string. The label text is only the first x chars + "...more"
Then onMouseOver(javascript) of the label, I hightlight the label and the tooltip will show the whole string(that is by default, no code required)

It seems complicated, but is very simple and a good solution to what you want to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top