Dispalying data in a cell in gridview

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top