private void ButtonAddResults_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow Row in ResultsGrid.SelectedRows)
{
if (!IsInValues((string)Row.Cells[0].Value))
{
int RowIndex = ValuesGrid.Rows.Add();
ValuesGrid[0, RowIndex].Value = null;
ValuesGrid[3, RowIndex].Value = ComboDataType.Text;
ValuesGrid[1, RowIndex].Value = Row.Cells[0].Value;
ValuesGrid[2, RowIndex].Value = SearchValue.Text;
}
}
}