Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
How to highlight a row in a xamDataGrid through the viewmodel
posted

I am currently using Infragistics 14.2.

How can I highlight a row(record) in the xamDataGrid through the viewmodel?

I bind the ActiveDataItem to a property in my viewmodel, but changing this property will not change the highlighted row in the grid.

I tried to set a style for the grid as following, to see if I can change the selected row by changing the IsSelected property in my model, but not working:

<igDP:XamDataGrid.Resources>
    <Style TargetType="{x:Type igDP:DataRecordCellArea}">
        <Setter Property="IsSelected" Value="{Binding DataItem.IsSelected, Mode=TwoWay}"/>
    </Style>
</igDP:XamDataGrid.Resources>

Thank you.