在WPF DataGrid(SfDataGrid)中删除行时如何获取目标记录?
关于样本
本示例说明了在 (SfDataGrid)中删除行时如何获取目标记录?
(SfDataGrid)不提供直接支持来获取将要删除的目标记录。 您可以使用事件获取要删除的目标记录。
sfDataGrid . RowDragDropController . Drop += RowDragDropController_Drop ;
private void RowDragDropController_Drop ( object sender , GridRowDropEventArgs e )
{
var droppedIndex = ( int ) e . TargetRecord ;
var rowIndex = this . sfDataGrid . R
评论0
最新资源