Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145351 | Jun 18,2019 01:04 PM UTC | Jun 19,2019 11:03 AM UTC | WPF | 1 |
![]() |
Tags: SfDataGrid |
<syncfusion:GridTemplateColumn MappingName="Conformed">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding Conformed}"
IsEnabled="{Binding Conformed, Converter={StaticResourcecheckBoxConverter}}" />
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
<syncfusion:GridTemplateColumn.CellStyle>
<Style TargetType="syncfusion:GridCell">
<Setter Property="Background" Value="{Binding Conformed, Converter = {StaticResource cellbackgroundconverter}}" />
</Style>
</syncfusion:GridTemplateColumn.CellStyle>
</syncfusion:GridTemplateColumn> |
public class CheckBoxConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter,CultureInfo culture)
{
if (value == null)
return false;
return true;
}
public object ConvertBack(object value, Type targetType, object parameter,CultureInfo culture)
{
throw new NotImplementedException();
}
} |
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.