Ejemplo n.º 1
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int             index  = dataGridView1.CurrentRow.Index;
            DataGridViewRow ligne  = dataGridView1.Rows[index];
            List <String>   values = new List <String>();

            foreach (DataGridViewCell cell in ligne.Cells)
            {
                values.Add(cell.Value.ToString());
            }
            List <String> libelles = Utilitaire.getList(comboBox1);

            foreach (string libelle in libelles)
            {
                Console.WriteLine(libelle.ToString());
            }
        }