datagrid textbox problem


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
 
Ad

Advertisements

E

EMW

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
 
Ad

Advertisements

H

Herfried K. Wagner [MVP]

* "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top