Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141962 | Jan 13,2019 11:29 AM UTC | Jan 17,2019 05:08 AM UTC | WPF | 4 |
![]() |
Tags: SfTreeGrid |
<syncfusion:TreeGridDateTimeColumn MappingName="DOB" TextAlignment="Right"
HorizontalHeaderContentAlignment="Left"
ColumnSizer="AutoFillColumn"
AllowNullValue="True"
AllowEditing="True" CanEdit="True"
CustomPattern="{Binding Pattern}" Pattern="CustomPattern" />
|
<syncfusion:TreeGridDateTimeColumn MappingName="DOB"
HeaderText="DOB WITH ROWDATA"
TextAlignment="Right"
HorizontalHeaderContentAlignment="Left"
ColumnSizer="AutoFillColumn"
AllowNullValue="True"
AllowEditing="True" CanEdit="True"
CustomPattern="{Binding Converter={StaticResource converter}}" Pattern="CustomPattern" /> |
class Converter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var employee = value as Employee;
if (employee != null)
{
return employee.Pattern;
}
else
return "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return value;
}
} |
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.