public void DoYes() { try { RowSelectionModel sm = this.TimeGridPanel.GetSelectionModel() as RowSelectionModel; foreach (SelectedRow row in sm.SelectedRows) { //Step 1 :Getting the id of the selected record: it maybe string int id = int.Parse(row.RecordID); //Step 2 : removing the record from the store //To do add code here //Step 3 : remove the record from the store TimeStore.Remove(id); } //Showing successful notification Notification.Show(new NotificationConfig { Title = Resources.Common.Notification, Icon = Icon.Information, Html = Resources.Common.ManyRecordDeletedSucc }); } catch (Exception ex) { //Alert in case of any failure X.MessageBox.ButtonText.Ok = Resources.Common.Ok; X.Msg.Alert(Resources.Common.Error, Resources.Common.ErrorDeletingRecord).Show(); } }