Hi Alex,
The attached solution having two issues. (Library : 9.2.20092.2001)
Issue 1: Click the Button2. In DataValueChanged event i changed the CellValuePresenterStyle for the changed cells. The style was applied perfectly. But that style got vanish if i sort a column or group by a column. Why it is? Issue 2: Button1 will change some cell value with DataTable.AcceptChanges(). Button2 will change some cell value without DataTable.AcceptChanges(). The Recordselector style is not executed in Button2. But after some grid operation like Sort / group by, the record selector icon will get refresh. Why it is? Advance thanks,Ramesh.P
Alex,
Do you need any additional information to proceed with this?
I tested in 9.2.20092.2023 version also. Not working.
Thanks
Ramesh.P
Hello Ramesh,
1 - Seems like an issue. It is reproducible with all the RecordContainerGenerationMode options, except the default on Recycle.
2 - I do not think this is an issue. What you can do, is bind to the Cell's Value and change the converter accordingly, like this:
<ControlTemplate TargetType="{x:Type igDP:RecordSelector}">
<Grid x:Name="MainBorder" Cursor="{TemplateBinding Cursor}">
<Image Source="{Binding Path=Cells[Status].Value, Converter ={StaticResource rowSelectorRecordConverter}}" />
</Grid>
</ControlTemplate>
----
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
string status = value as string;
Image image1 = new Image();
if (status == "C")
image1.Source = new BitmapImage(new Uri(@"...", UriKind.RelativeOrAbsolute));
return image1.Source;
}
else
For Issue 1, I am going to create a support case on your behalf and continue the conversation there.