I'm trying to fill in a **telerik radDataGridView** (the same problem happens with a normal *dataGridView* as well).

one of the columns in my db table is named [*updateType*].

the *'type'* is described in an enum:

```cs
public enum TypeEnum
{
    INSERT = 0,
    UPDATE_OR_INSERT = 1,
    UPDATE = 2,
    DELETE_OR_INSERT = 3
};

```

i'm filling the dataGridView *(dgv)* in the Load event:

```cs
private void Form1_Load(object sender, EventArgs e)
{
  this.table1TableAdapter.Fill(this.tempdbDataSet.Table1);

  for (int i = 0; i < dgv.RowCount; i++)
  {
    switch ((int)dgv.Rows[i].Cells[2].Value)
    {
      case (int)TypeEnum.INSERT:
            dgv.Rows[i].Cells[2].Value = "INSERT";
            break;
      case (int)TypeEnum.UPDATE_OR_INSERT:
            dgv.Rows[i].Cells[2].Value = "UPDATE/INSERT";
            break;
      case (int)TypeEnum.UPDATE:
            dgv.Rows[i].Cells[2].Value = "UPDATE";
            break;
      case (int)TypeEnum.DELETE_OR_INSERT:
            dgv.Rows[i].Cells[2].Value = "INSERT/DELETE";
            break;
      default:
            break;
    }
  }
}

```

but it fails, when trying to fill in a *string* value to an *int* typed gridview cell,

throwing an exception  **Input string was not in a correct format**.

thanks to anyone who can solve this.