private void tablaPrincipal_CellContentClick(object sender, DataGridViewCellEventArgs e) { int columnIndex = e.ColumnIndex; List <string> columnElements = new List <string>(); foreach (DataGridViewRow row in tablaPrincipal.Rows) { if (row.Cells[columnIndex].Value != null) { columnElements.Add(row.Cells[columnIndex].Value.ToString()); } } StatisticAnalysisForm analysis = new StatisticAnalysisForm(columnElements, tablaPrincipal.Columns[e.ColumnIndex].Name, valores, atributos, columnIndex, this); this.Hide(); analysis.Show(); }
private void regresar_Click(object sender, EventArgs e) { anterior.Show(); this.Close(); }