if (exam.dataGridView1.Rows.OfType<DataGridViewRow>().Take(1).Count() > 1) { inexaminfo.Enabled = false; }
if (exam.dataGridView1.Rows.Count >1) { inexaminfo.Enabled = false; }
if (dataGridView1.Rows.Count > 1) inexaminfo.Visible = false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)