I have this code:

```
private void comboBox2_TextChanged(object sender, EventArgs e)
{
    var price = dt.Select("desc = '" + comboBox2.Text + "'", "price ASC");

    textBox9.Text = price[0][2].ToString();
}

```

dt is a datatable holding stock items in rows like so: id,desc,price

The code it self works fine when I choose an item from the combobox (populated from dt) but if I start to type in the combobox I get this error: Index was outside the bounds of the array.

How do I do the lookup only when the combobox is completed with one of the contained items?

Much love. :o)