Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151269 | Feb 5,2020 01:04 PM UTC | Feb 7,2020 06:28 AM UTC | WPF | 3 |
![]() |
Tags: SfDataGrid |
<DataTemplate x:Key="cellTemplate">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button Content="{Binding Path=Value,Converter={StaticResource converter}}" Width="70" Height="25" />
<TextBlock Foreground="Red"
Margin="3,0,0,0"
Text="{Binding Path=Value, Converter={StaticResource converter}}"/>
<CheckBox IsChecked="{Binding Path=Value,Converter={StaticResource converter}}"/>
</StackPanel>
</DataTemplate>
if(e.Column.MappingName=="IsClosed")
{
e.Column = new GridTemplateColumn()
{
MappingName = e.Column.MappingName,
SetCellBoundValue=true,
CellTemplate = Application.Current.FindResource("cellTemplate") as DataTemplate
};
} |
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.