DataTable Events - RowChanging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis

    #1

    DataTable Events - RowChanging

    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 in Houston
  • Cor Ligthert

    #2
    Re: DataTable Events - RowChanging

    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


    Comment

    • Dennis

      #3
      Re: DataTable Events - RowChanging

      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!

      "Cor Ligthert" wrote:
      [color=blue]
      > 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
      >
      >
      >[/color]

      Comment

      Working...