Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Track whether grid data is edited ?

Last post 07-29-2008 9:52 by [Infragistics] Mike Saltzman. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-25-2008 4:02

    Track whether grid data is edited ?

    Hi all,

    How to track whether the grid is edited (any of the cell value is changed withrespect to that of the binded value).is there any direct method..........

    Thanks in advance ,

    Regards,

    Arun 

     

    Arun Raj :)
    • Post Points: 20
  • 07-25-2008 10:07 In reply to

    Re: Track whether grid data is edited ?

    Answer

    This depends on a number of factors, like what your UpdateMode is set to and what your data source is. 

    By default, the grid will update the underlying data source when the active row changes or the grid loses focus. So at that point, there is no longer anything for the grid to track. 

    Mike Saltzman
    R&D Engineer
    Infragistics, Inc.
    • Post Points: 20
  • 07-28-2008 0:11 In reply to

    Re: Track whether grid data is edited ?

    Mike,

    thanks for the info,I wud like to know if i bind an arraylist or ilist ,will I be able to get the modified records alone at one shot without any looping as in the case of Datatable.Getmodified()

     

    Regards,.

    Arun

    Arun Raj :)
    Filed under:
    • Post Points: 20
  • 07-28-2008 10:16 In reply to

    Re: Track whether grid data is edited ?

    No. The method you are referring to is a method of the DataTable object. It's up to the data source to track this kind of information and an ArrayList does not support tracking changes. 

    Mike Saltzman
    R&D Engineer
    Infragistics, Inc.
    • Post Points: 20
  • 07-29-2008 0:07 In reply to

    Re: Track whether grid data is edited ?

    Hi Mike,

    Thanks  for the insight,Wat could be the best way to catch up with whether any data in the cell is modified .......

    I prefer to use the beforecellUpdate event ,within that check for the original value and new value if changed then raise a flag...but this will get triggered for each and every change , ,,,,,

    any possible work around you find for this...

    I use the performAction -->commitrow and grd.update,grd.Endupdate  will any of these methods return me the modifcatio info ???.........please help me .. thanks in advance

     

    Regards,

    Arun

     

    Arun Raj :)
    • Post Points: 20
  • 07-29-2008 9:52 In reply to

    Re: Track whether grid data is edited ?

    Answer

    Hi Arun,

    I suppose you could change the UpdateMode on the grid to OnRowChangeOrLostFocus, then compare the entire row in BeforeRowUpdate instead of one cell at a time in BeforeCellUpdate. 

    Mike Saltzman
    R&D Engineer
    Infragistics, Inc.
    • Post Points: 5
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems