validator = new Regex(@"^[0-9]{0}[0-9A-Z]$"); if (!validator.IsMatch(dataGridView1.Text)) errors.AppendLine("Select order No. from grid");
if ( !(dataGridView1.CurrentCell.ColumnIndex == 0 && dataGridView1.SelectedCells.Count > 0) && !validator.IsMatch(dataGridView1.Text)) errors.AppendLine("Select order No. from grid");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)