private void button2_Click(object sender, EventArgs e) { for ( int i = 0; i < grupeDataGridView.Rows.Count; i++) { DataGridViewRow row = new DataGridViewRow(); row = grupeDataGridView.Rows[i]; if (Convert.ToBoolean(row.Cells[0].Value) == true) { label1.Text = row.Cells[2].Value.ToString(); listBox1.Items.Add(label1.Text); try { this.grupeTableAdapter.FillBy12(this.dbDiplomskiDataSet.grupe, label1.Text); } catch (SystemException ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)