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.
Hello yingwu,
Thank you for your post!
I have been looking into it and what I can suggest is to take a look at the following link from our forum, where similar issue is discussed: http://es.infragistics.com/community/forums/t/62516.aspx.
Please do not hesitate to let me know if you have any further questions on this matter.