I'd like to bind xamDataGrid rows to an IsSelected property in my ViewModel, so I did this:
<Style TargetType="{x:Type igDP:DataRecordPresenter}">
<EventSetter Event="MouseLeftButtonUp" Handler="object_MouseLeftClick"/> <EventSetter Event="MouseDoubleClick" Handler="object_MouseDoubleClick"/> <EventSetter Event="MouseRightButtonUp" Handler="object_MouseRightClick"/> <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
</Style>
Attempting to attach the sample again in IE.
Hello,
Could you please try again to attach the sample, because on my side it seems like that everything works ok and I am able to write posts and attach files to the forum. Also I suggest you use IE, when using the forum, because it works best with it.
Looking forward for your reply.
Very well, please see the attached sample. Use Ctrl/Shift to multiselect.
EDIT: Sample does not appear to be attached; trying again
EDIT 2: Not working. Is this related to the error message I get every time I post anything?
Hello again,
Could you please send me an isolated sample project, where this issue is reproduced, so I can investigate it further for you.
Well, I added the following to my grid:
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectRecord"/> </igDP:XamDataGrid.FieldSettings>
I know this is not a problem with the code of the viewmodel, because I have successfully bound IsSelected in the same viewmodel with a ListBox and a ListView.