Beispiel #1
0
        /// <summary>
        /// Called aw we attempt to delete one or more users from the database
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ultraGrid1_BeforeRowsDeleted(object sender, Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)
        {
            // Get the user being updated
            UltraGridRow updatedRow = e.Rows[0];
            User         thisUser   = (User)updatedRow.Cells[0].Value;                          // Column 0 is the User Object

            DeleteUser(thisUser);
        }
 private void grdList_BeforeRowsDeleted(object sender, Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)
 {
     try
     {
         Delete();
         // Vì Delete đã Remove row khỏi BindingSource nên không cần thực hiện DeleteRow nữa
         e.Cancel = true;
     }
     catch (Exception ex)
     {
         MessageBoxCommon.ShowException(ex);
     }
 }
Beispiel #3
0
 /****************************************************************************************************
 * NAME         : uGrid_Users_BeforeRowsDeleted                                                     *
 * DESCRIPTION  : BeforeRowsDeleted Event call from uGrid_Users_BeforeRowsDeleted control           *
 * WRITTEN BY   : RajaSekar J                                                                       *
 * DATE         : 15Feb2018                                                                         *
 ****************************************************************************************************/
 private void uGrid_Users_BeforeRowsDeleted(object sender, IWUG.BeforeRowsDeletedEventArgs e)
 {
     intuGrid_Users_DeleteRowId = string.IsNullOrEmpty(e.Rows[0].Cells[3].Value.ToString()) ? 0 : Convert.ToInt32(e.Rows[0].Cells[3].Value.ToString());
 }