Win Form datagrid row change event??

  • Thread starter Thread starter djam
  • Start date Start date
D

djam

Is there such a thing as a row change event in Win Forms? I can't
seem to find anything similar, I'm using CurrentCellChanged but that
gets fired mulitple times and its not the correct event for me to
use.

thanks
 
You should use CurrencyManager.CurrentChanged event for that:

CurrencyManager cm =
(CurrencyManager)this.BindingContext(dataGrid.DataSource,
dataGrid.DataMember);
cm.CurrentChanged += new EventHandler(CurrentRowChanged);

HTH,
Alexander

djam said:
Is there such a thing as a row change event in Win Forms? I can't
seem to find anything similar, I'm using CurrentCellChanged but that
gets fired mulitple times and its not the correct event for me to
use.

thanks
 

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

Back
Top