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
Disable Enter key in Datagrid
system interrupt controller missing driver
Change the background color of a CDateTimeCtrl object.
Passing Parameters to Crystal Report Viewer - ASP.Net / C#.Net
Error # 429: ActiveX component can't create object by db1 when sending automatic email
Access questions re: forms
How do I place an image next to a database item in SQL Reporting Services
How can I retrieve a list of printer trays for a specific printer?
Recovery Console - "Copy c:\ d:\" fails!
Creating an automatic sum for specific cells - excel 2007