【文件属性】:
文件名称: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)
网友评论
相关文章
- how-to-search-the-whole-word-in-wpf-data-grid:如何在WPF DataGrid(SfDataGrid)中搜索整个单词?
- how-to-show-different-currency-symbol-based-on-data-in-gridcurrencycolumn-in-wpf-datagrid:如何基于WPF DataGrid(SfDataGrid)中GridCurrencyColumn中的数据显示不同的货币符号?
- how-to-show-the-filtericon-while-mouse-hover-in-wpf-datagrid:如何在WPF DataGrid(SfDataGrid)中将鼠标悬停时显示FilterIcon?
- how-to-export-the-multiple-wpf-datagrid-s-sfdatagrid-s-into-multiple-worksheet-in-excel:如何将多个WPF数据网格(SfDataGrid)导出到Excel中的多个工作表中?