how-to-get-the-target-record-when-drop-the-row-in-wpf-data-grid:在WPF DataGrid(SfDataGrid)中删除行时如何获取目标记录?

时间:2021-03-09 12:04:41
【文件属性】:
文件名称:how-to-get-the-target-record-when-drop-the-row-in-wpf-data-grid:在WPF DataGrid(SfDataGrid)中删除行时如何获取目标记录?
文件大小:16KB
文件格式:ZIP
更新时间:2021-03-09 12:04:41
C# 在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
【文件预览】:
how-to-get-the-target-record-when-drop-the-row-in-wpf-data-grid-master
----SfDataGridDemo()
--------App.xaml.cs(330B)
--------SfDataGridDemo.csproj(5KB)
--------SfDataGridDemo.sln(1KB)
--------MainWindow.xaml.cs(1KB)
--------MainWindow.xaml(2KB)
--------Properties()
--------App.config(178B)
--------App.xaml(503B)
--------ViewModel()
--------App.ico(4KB)
--------Model()
----README.md(2KB)

网友评论