int[] rows = gridView1.GetSelectedRows();

if (rows.Length > 0)
{
if (DialogHelper.YesNo(this, "确认删除该记录?", "删除提示") != System.Windows.Forms.DialogResult.Yes) return;

DataRowView drv = (DataRowView)gridView1.GetRow(rows[0]);

//_layerUpdater.b.Rows.Remove(drv.Row);
drv.Row.Delete();
}

 

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
相关资源
相似解决方案