DataTable Events - RowChanging

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an event handler that receives events when a datarow is about to be
changed in a datatable. However, all that is passed to the event handler is
the action type and the DataRow object that is going to be changed. I want
to get the row number without comparing each datarow object in the datatable
to the datarow passed to the event handler. I know that I can get the row
index if I get a currency manager from a bindingcontext but I don't want to
go that route.

Anyone know how to get the row index from the DataRow Object? Thanks.
 
Dennis,

For that is the currencymanager.

When you want to make a program without using the things that are made for
it you can better stop.

This sounds for me the same as I want to make a program without using the
equal operator.

Just my thought,

Co
 
As I said, I can get it to work using the currency manager but was curious as
if I could do it with the DataTable Events. If we never try to stretch our
programming language and our knowledge of that language, then we don't learn
very much do we!
 

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