Forcing a datagrid row to commit

  • Thread starter Thread starter Guest
  • Start date Start date
Sorry, I suppose it is not the ColumnStyle.Commit event that I need.
Basically, I think I need to do a BindingManagerBase.EndCurrentEdit on the
current row in the datagrid. How do I do it?

Thanks,
 
Pat,

Seriously, what is the reason that you ask it. The moment that you do an
update is mostly soon enough.

Cor
 
Yes, you would think so wouldn't you?
I have a UserControl with a datagrid on it. It displays child records for
the UserControl's BindingContext. When there are no child records and the
user creates one by editing the New Record row in the datagrid, and then
navigates away from the parent record, the new child record does not get
retained. This problem does not happen if a child record already exists, or
if the user first navigates away from the new child record within the
datagrid (by moving to the next row), and THEN navigates to a different
parent record.

What is going on?

Thanks,
 
Pat,

Do you real think that you can get this kind of help from a newsgroup.
Involved are:
a usercontrol
a resource
databinding
datarelations
more tables
a special way of handling by you.

Sorry I don't think at least that this in the way you give the problem to us
it is for me to complex to give a serious answer.

Cor
 
Sure Cor, I could give MUCH more detail. How likely would that have been to
elicit any response whatever?

I will post as much of the code for the UserControl as you think necessary
or are interested in seeing.

Clearly you understand the complexity of the situation; I thought my
question might jog the memory of someone who had experienced similar problems
and that might lead ME to a solution. To me, a newsgroup seems a very good
place to start.
 
Pat,

This kind of situations did me decide that when I use a datagrid not to use
the standard addrow. However to create buttons for this kind of things, what
can I say more?

Cor
 
Back
Top