private void dataGridView_CellLeave(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 1)
{
string cellCOntent = dataGridView.CurrentCell.EditedFormattedValue.ToString();
//You can have your validation code here...
}
}
Get the cell content that you entered/edited in the datagrid.