DataGrid Event Problem

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

    #1

    DataGrid Event Problem

    with WinForm + DataGrid

    How do I Catch the event if the text have changed in a specific cell ?

    Please Help!!!



  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: DataGrid Event Problem

    Mario,

    There is no event for this. However, you can use the CurrentCellChan ged
    event to help you here. Basically, when you move into a new cell, you store
    the value of the new cell that you have moved into. Then, when you move out
    of the cell, you check the value of the cell that you moved out of against
    the value you stored. You can then check to see if they are the same or
    not.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "mario" <MSimard@parado x.ca> wrote in message
    news:%23Vj4XI5d DHA.1944@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > with WinForm + DataGrid
    >
    > How do I Catch the event if the text have changed in a specific cell ?
    >
    > Please Help!!!
    >
    >
    >[/color]


    Comment

    • William Ryan

      #3
      Re: DataGrid Event Problem

      I forget the link when I responded to your other post. Looks like Nicholas
      has already answered it, but check this out for a good discussion on it...
      http://www.c-sharpcorner.com/Databas...DataGridTA.asp
      "mario" <MSimard@parado x.ca> wrote in message
      news:%23Vj4XI5d DHA.1944@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > with WinForm + DataGrid
      >
      > How do I Catch the event if the text have changed in a specific cell ?
      >
      > Please Help!!!
      >
      >
      >[/color]


      Comment

      Working...