Aspx Gridview Row Change

Last post 08-29-2008 1:24 PM by bmains. 1 replies.

Sort Posts:

  • Aspx Gridview Row Change

    08-29-2008, 12:36 PM
    • Member
      point Member
    • markcas
    • Member since 08-29-2008, 4:18 PM
    • Posts 1

    I have a gridview control being populated by data from a SQL Server database, the gridview have the editUpdate buttons.  I need to execute a process when the update button gets click, but only if a cell on that row gets changed.  The editUpdate buttons are from the gridView control and its related data source

  • Re: Aspx Gridview Row Change

    08-29-2008, 1:24 PM
    Answer
    • All-Star
      28,004 point All-Star
    • bmains
    • Member since 10-22-2004, 8:20 AM
    • Posts 5,651
    • TrustedFriends-MVPs

    Hey,

    In the RowUpdating event, the event argument has an OldValues and a NewValues dictionary that you can use.  This has all the properties of the two calls, but only works if you are using the data source control and are not using a TemplateField.

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
Page 1 of 1 (2 items)