Hi Mark,
Thank you for your update.
We have analyzed your query, currently we don’t have a support for de select the selected row in Single SelectionMode in SfDataGrid, but you can achieve your requirement by set the SelectedItem as null in PreviewMouseUp event in SfDataGird.
Please refer the below code example
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;
} |
We have considered to provide support for “Support to deselect a record in single selection mode” in WPF and logged feature request for the same. We will implement this feature in any of our upcoming release.
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
Note: The provided feedback link is private and you need to login to view this feedback.
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.
Regards,
Farjana Parveen A