I am working with a datagridview and am having a problem with the way I am using it.



When the DGV is displayed in the form, the Upper left corner cell of the DGV is the focus. I would like for there to be no cell in the DGV focused.

The reason this is a problem is that I am using the DGV_CellDoubleClick() event.

The Adding and Editing properties are set to true for the DGV, as I want to be able to edit some of the data without opening the record form.

What occurs, is that if I double click in the focused cell, the application crashes. I have not spent any significant time trying to figure out why this occurs, as the problem would go away if there is no cell in the DGV that is in focus.