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
Table design to enforce interesting constraint logic
Batch File to dump list of Hostnames to IP Addresses
Quick Batch File Rename Question
Adding a keyboard shortcut to a WPF MenuItem
Help caputring sql profiler trace
Installing a Windows 7 network printer
What possible steps can you use to debug why outbound SMTP email messages are not reaching intended receipients?
Office 2007 volume licensing and Terminal Server
Gridview-only show first 10 characters of text.
delete confirm popup on asp hyperlink inside repeater control?