DataGridViewCheckBoxCell cb = (DataGridViewCheckBoxCell)dataGridViewX6.Rows[i].Cells[1];
                Boolean flag = Convert.ToBoolean(cb.Value);
                if (flag == true)
                {