Dajer 0 Junior Poster in Training

Hi friends
I want to force datagridview's columns to use "NO" format mask at run time.for achieving this,I used this code.There is no error but it doesn't work.(This code is for column[1])

private void dataGridView1_CellValidating
(object sender,DataGridViewCellValidatingEventArgs e)
        {
            dataGridView1.Columns[1].DefaultCellStyle.Format = "NO";
        }

what should I do?
thx for your attention.