I am trying to get the value of the cell when click in my viewmodel.
This is what i have so far. Just do not know what to do next.
//command that get executed when grid row get double clicked
ShowClockedInUserDialog = ReactiveCommand.Create<object>(async (object datagrid) =>
{
var dg = datagrid as SfDataGrid;
var cell = dg.CurrentCell; //get row and column of clicked cell
//How do i get the value of the cell here?
}
xaml grid
<sfgrid:SfDataGrid
x:Name="dataGrid"
AutoGenerateColumnsMode="None"
SelectionMode="Single"
SelectedIndex="{Binding SelectedIndex}"
RowHeight="48"
HorizontalScrollBarVisibility="Always"
VerticalScrollBarVisibility="Always"
GridLinesVisibility="Both"
HeaderGridLinesVisibility="Both"
ItemsSource="{Binding EveryoneClockedIn}"
ColumnWidthMode="Fill">
<sfgrid:SfDataGrid.Behaviors>
<toolkit:EventToCommandBehavior
EventName="CellDoubleTapped"
Command="{Binding ShowClockedInUserDialog}"
CommandParameter="{Reference dataGrid}" />
</sfgrid:SfDataGrid.Behaviors>
</sfgrid:SfDataGrid>