Posted 17 June 2018, 2:50 pm EST
Hi
In C1DataGrid,
I successed in changing selected row after mouse left button DOWN
but I can NOT change selected CELL after mouse left button DOWN (default is the selected cell will be changed when mouse left button UP)
This is how I change selected row by MouseLeftButtonDown event
[i]private void OnC1DataGridRowPreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
var rowPresenter = sender as DataGridRowPresenter;
if (rowPresenter == null || dataGridView.SelectionMode != DataGridSelectionMode.SingleRow) return;
dataGridView.SelectedIndex = rowPresenter.Row.Index; }[/i]
Could you give me a way to solve this problem? Thank you so much!