示例#1
0
文件: FrmPosEdit.cs 项目: ryurik/ZOV
 private void DeleteFocusedRows(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     if (view.RowCount > 0 && view.IsValidRowHandle(view.FocusedRowHandle) && !view.IsNewItemRow(view.FocusedRowHandle))
     {
         view.BeginSort();
         try
         {
             view.DeleteRow(view.FocusedRowHandle);
         }
         catch (Exception)
         {
         }
         view.EndSort();
     }
 }