datagrid textbox problem

  • Thread starter Thread starter EMW
  • Start date Start date
E

EMW

When a user fill in a cell in the datagrid and does not leave this cell but
clicks on i.e. a toolbar button for another form, the dataset is not updated
and I get an unhandled exception error.

How can I force a ENTER pressed event to this datagridtextbox, to make it
valid?

I can catch the validation event to do this, but how?

rg,
Eric
 
never mind, tried something and it worked.

I used:

Dim dgc As DataGridColumnStyle = _
dgTabel.TableStyles(0).GridColumnStyles(0)
dgTabel.EndEdit(dgc, dgTabel.CurrentCell.RowNumber, False)

rg,
Eric
 
* "EMW said:
When a user fill in a cell in the datagrid and does not leave this cell but
clicks on i.e. a toolbar button for another form, the dataset is not updated
and I get an unhandled exception error.

How can I force a ENTER pressed event to this datagridtextbox, to make it
valid?

Pressing a toolbar button doesn't put the focus onto the toolbar.
 
Back
Top