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
 
Back
Top