I have a row doubleclick defined like this in my XAML (using the MVVM Community Toolkit). I need to make an exception, if the user double clicks in the first column (fieldname is IsSelected), i want to use some different logic. I can't figure out how to tell which column was focused in my event.
Is the correct answer to implement CellDoubleClick instead of Row for every column? That would be very tedious. I have full access to the grid through my GridService, I just don't know how to check.
XAML<dxg:TableView
ShowGroupPanel="False"
ShowIndicator="False"
FadeSelectionOnLostFocus="False"
EnableImmediatePosting="True"
RowDoubleClickCommand="{Binding GridRowDoubleClickedCommand, Converter={dxmvvm:ToTypedCommandConverter}}"
/>
C#[RelayCommand]
private void OnGridRowDoubleClicked(
DevExpress.Mvvm.Xpf.RowClickArgs e
)
{
var focusedRow = GridSupportService.FocusedRowGet<DataSourceSelectorRowViewModel>();