Dispalying data in a cell in gridview

G

Guest

Hi,
I've bind a grdiview to a database and it's working fine. but what I want
to do is if the data in certain cell exceed the cell width the that cell will
only show the words with some dots implying to the user that is more data
that should be seen.
meaning that if the data to be shown in a cell is e.g: "This is my data an
it's very long that why I'm showing it all" I would like cell just showing
the first words followed by dots like "This is my data an it's very long...."
is there some property or something to be set in my gridview allowing my
cells to do that?

Thanks
 
G

Guest

Hi,
You can do it by handling ItemDataBound event if it is asp.net 1.1 or
RowDataBound event if it is asp.net 2.0.Google for "itemdatabound
rowdatabound event asp.net" and you will get exact syntax for ItemDataBound
or rowdatabound
Also http://gridviewguy.com is good site to visit if you any query regarding
asp.net 2.0 gridview
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top