Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147110 | Sep 2,2019 09:05 AM UTC | Sep 9,2019 10:34 AM UTC | WPF | 3 |
![]() |
Tags: SfDataGrid |
<Window.Resources>
<local:CustomCellTemplateSelector x:Key="cellTemplateSelector"/>
<DataTemplate x:Key="DefaultTemplate">
<TextBlock Background="Wheat"
Foreground="Red"
Text="{Binding Path=EmployeeId}"
TextAlignment="Center" />
</DataTemplate>
<DataTemplate x:Key="AlternateTemplate">
<TextBlock Background="Beige"
Foreground="Green"
Text="{Binding Path=EmployeeId}"
TextAlignment="Center" />
</DataTemplate>
</Window.Resources> |
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.