Microsoft
Software
Hardware
Network
Question : How to truncate (GridView)BoundFiled's string value using DataFormatString?
Basically, I have got the GridView with the BoundFiled called "Description" which can be very long. I would like to truncate it to 100 characters. (I would like to postfix with "..." after trucate if possible)
We can always do it by handling the DataBound event handler but is it possible to do it with the DataFormatString?
Answer : How to truncate (GridView)BoundFiled's string value using DataFormatString?
I think the only way that can be done is to use the DataBound event. The DataFormatString does not have the capability to do this.
Random Solutions
Active Directory Planing
How to calculate the sum of a bound column in a GridView control for manipulation in VB Code-Behind
Need help with exisiting code. reading attachments and save to MS Access
Hibernate Mapping - Stored Proc result from multiple tables
disable Office 2003 splash screens
How to populate unbound controls on a continuous form in Access 2007
Exchange Migration - Exchange 2003 - Exchange 2007 - Old Hardware to New Hardware
DIR command to list directory contents to text file
Syntax for SQL subquery
ODBC Connection to Back End Access MDB with Front End MDE