BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
dataGrid.PreviewMouseUp += dataGrid_PreviewMouseUp;
void dataGrid_PreviewMouseUp(object sender, MouseButtonEventArgs e)
{
var record = this.dataGrid.GetRecordAtRowIndex(dataGrid.SelectionController.CurrentCellManager.CurrentRowColumnIndex.RowIndex);
if (dataGrid.SelectedItems.Contains(record))
dataGrid.SelectedItem = null;
} |
dataGrid.PreviewMouseUp += dataGrid_PreviewMouseUp;
void dataGrid_PreviewMouseUp(object sender, MouseButtonEventArgs e)
{
var rowIndex = dataGrid.GetVisualContainer().PointToCellRowColumnIndex(e.GetPosition(dataGrid.GetVisualContainer())).RowIndex;
var record = this.dataGrid.GetRecordAtRowIndex(rowIndex);
if (dataGrid.SelectedItems.Contains(record))
dataGrid.SelectedItem = null;
} |