Пример #1
0
 private void OnOpenReminderItem(object source, ReminderEventArgs e)
 {
     //Event handler for Rmeminder OpenItem event
     try {
         //Select the row and scroll into view
         for (int i = 0; i < this.dgvMain.Rows.Count; i++)
         {
             if (Convert.ToInt32(this.dgvMain.Rows[i].Cells["colID"].Value) == e.ID)
             {
                 this.dgvMain.Rows[i].Selected = true;
                 this.dgvMain.FirstDisplayedScrollingRowIndex = i;
                 this.dgvMain.Refresh();
                 break;
             }
         }
     }
     catch (Exception ex) { App.ReportError(ex, false); }
 }
Пример #2
0
 private void OnOpenReminderItem(object source,ReminderEventArgs e) {
     //Event handler for Rmeminder OpenItem event
     try {
         //Select the row and scroll into view
         for (int i = 0;i < this.dgvMain.Rows.Count;i++) {
             if (Convert.ToInt32(this.dgvMain.Rows[i].Cells["colID"].Value) == e.ID) {
                 this.dgvMain.Rows[i].Selected = true;
                 this.dgvMain.FirstDisplayedScrollingRowIndex = i;
                 this.dgvMain.Refresh();
                 break;
             }
         }
     }
     catch (Exception ex) { App.ReportError(ex,false); }
 }