You can use a custom extension method as shown below:
///
/// Returns only the first n characters of a String.
///
///
///
///
///
public static string TruncateString(this string str, int start, int maxLength)
{
return str.Substring(start, Math.Min(str.Length, maxLength));
}
Hope this helps...