Exemple #1
0
 void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         HistoryRow row = (HistoryRow)dataGridView1.Rows[e.RowIndex];
         if (row.Alert.Type != "info")
         {
             row.Expanded = !row.Expanded;
             row.RefreshRow();
         }
     }
 }
 private void dataGridViewRunHistory_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0 && e.RowIndex < dataGridViewRunHistory.RowCount)
     {
         HistoryRow row = (HistoryRow)dataGridViewRunHistory.Rows[e.RowIndex];
         if (row.Alert.Type == PolicyAlertType.Error)
         {
             row.Expanded = !row.Expanded;
             row.RefreshRow();
         }
     }
 }