A so-called value converter might help you.
Please have a look here:
http://www.wpftutorial.net/ValueConverters.html[
^]
In the Convert method you must return 'L' if value contains 'L'
using System;
using System.Windows.Data;
namespace SharepointWebServiceTest
{
class LConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if(value.ToString().Contains("L"))
{
return "L";
}
else
{
return value;
}
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}