Beispiel #1
0
        private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
        {
            string g = ClientsGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].GetType().ToString();

            if (g == "System.Windows.Forms.DataGridViewButtonCell")
            {
                string id = ClientsGrid.Rows[e.RowIndex].Cells[0].Value.ToString();

                PetForm a = new PetForm(Token, id);
                a.Show();
            }
        }