As you see on snapshot I have comboxEditor inside cell , once I uncomment following code for DataErrorContentTemplateKey ,I can see comboeditor inside cell but no data there. I don't what I am doing mistake. I attached zipfile, you can eaisly reproduce after commenting/uncommeting following code. my goal is only make transparent of background from pink
---------
<DataTemplate x:Key="{x:Static igDP:DataPresenterBase.DataErrorContentTemplateKey}"> <Grid x:Name="panel"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Border x:Name="errorBorder" BorderThickness="1" BorderBrush="#FF5D696D" Grid.ColumnSpan="2" Visibility="Collapsed" SnapsToDevicePixels="True"> </Border> <Control x:Name="errorIcon" Visibility="Collapsed" Margin="4,0,0,0" Style="{DynamicResource {x:Static igDP:DataPresenterBase.DataErrorIconStyleKey}}" /> <ContentPresenter x:Name="content" ContentTemplate="{x:Null}" Grid.Column="1" Margin="0,0,2,0" /> </Grid> <DataTemplate.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding Path=Host.HasDataError}" Value="true" /> <Condition Binding="{Binding Path=Host.IsDataErrorDisplayModeIcon}" Value="true" /> </MultiDataTrigger.Conditions> <Setter TargetName="errorIcon" Property="Visibility" Value="Visible" /> <Setter TargetName="errorIcon" Property="ToolTip" Value="{Binding Path=Host.DataError}" /> </MultiDataTrigger> </DataTemplate.Triggers> </DataTemplate>
Attach solution file, please help me
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into it and I modified the sample you sent, so now it works as you want. Basically I changed the Binding for the XamComboEditor’s ItemsSource, because the DataContext there is XamComboEditor and you need the DataREcordPresenter.
Feel free to write me if you have further questions.