Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148368 | Oct 16,2019 09:35 PM UTC | Nov 12,2019 09:50 AM UTC | Xamarin.Forms | 4 |
![]() |
Tags: SfDataGrid |
GroupColumnDescriptions.Add(new GroupColumnDescription()
{
ColumnName = "Freight",
Converter = new GroupConverter()
});
……..
public class GroupConverter : IValueConverter
{
public GroupConverter()
{
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var orderInfo = value as OrderInfo;
var name = orderInfo.FirstName;
var firstLetter = name.First().ToString();
return firstLetter;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.