i am using a XamDataGrid to display my data. Now I want to add different commands to each column.
Using the CellActivated event on the whole grid and then binding to ActiveCell wont work since the Viewmodel would have to know about the View and how to evaluate the Column from the object returned by ActiveCell.
I am looking for a way how to tell the XamDataGrid which command should be called.
I imagine something like this:
<igDP:Field Name="Dev" >
<igDP:Field.Settings>
<igDP:FieldSettings CellValuePresenterStyle="{StaticResource DevStyle}" ActivateCommand="{Binding DevCommand}/>
</igDP:Field.Settings>
</igDP:Field>
I dont really care if the command has to be a property of my viewmodel or the dataitem.
How do i implement this?
Thank You