I have a DataGridView on a form (VB/Dot Net 2.0). AllowUserToAddRows = True.
I am perhaps not as familiar with the DGV as I thought, and I think my main
problem at the moment is that I'm not entirely sure what terminolgy to use
here.
Given that, this application is intended for data entry and as such it has
to easy to add large numbers of rows at a time. The problem is that the
first column has to be read-only unless the user is in the add row. That
much I've solved, by using the RowEnter event and changing the Cell.ReadOnly
to False.
That said, once I'm in the editing control (is that the right term?) I would
like the Enter key to behave like a Tab. I've looked at a variety of sources
and I'm getting a bit confused. Anyone else ever have a scenario like this?
What would be simplest?
-------------------------
The point of this is that leaving the editing field, or entering into the
next one (I haven't decided which yet) is suposed to trigger a popup that
allows selection from a list. (A combobox in the grid would not be
practical). Once an item is selected, the row is populated and added and the
entry field is no longer editable. If no match is found, the grid is
supposed to go back to the entry field and allow another try.
|