Currently i am having code like this inside `dataGridView1_CellValidating` event:

```
if(e.ColumnIndex == dataGridView1.Columns["FIRST"].Index)
{
    // Some code
}
else if(e.ColumnIndex == dataGridView1.Columns["Second"].Index)
{
    // Some code
}
else if(e.ColumnIndex == dataGridView1.Columns["Third"].Index)
{
    // Some code
}

```

And it is like this because i cannot use it in switch statement like:

```
switch(e.ColumnIndex)
{
    case dataGridView.Columns["First"].Index:
        break;
    case dataGridView.Columns["Second"].Index:
        break;
    case dataGridView.Columns["Third"].Index:
        break;
}

```

returns me error on `case` line `Expecting constant value`.

**So how can i make this work?**