Gridview rowupdating get key

Suppose we’ve to work on Customer table having Category ID as foreign key.Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.

Could someone please let me know how to get the selected row?

I had inadvertently set Enable View State for this textbox to "False".

Because of this, the Grid View was rebinding itself before the UPDATE occurred.

I am not getting any error, the page returns with the original values. Hope that helps, marloutor I also had a problem with a Grid View that was not updating. Newvalues Dictionary in the Grid View's Row Updating event showed that the old values for the record were being sent to the database UPDATE query.

I was thinking that if your gridview is rebound then the updated data would be displayed.

gridview rowupdating get key-44gridview rowupdating get key-57gridview rowupdating get key-53

Setting Enable View State on the Text Box to "True" fixed the problem.

Join our conversation (53 Comments).
Click Here To Leave Your Comment Gridview rowupdating get key.

Comments:

  1. 1
    Steve

    I had never been on a cruise but grew up hearing my grandmothers cruising adventures and had always been curious.

  2. 1
    Steve

    That dates all the way back to the good ole’ days of Yahoo Chat Rooms (which shut down in late 2012).

  3. 1
    Steve

    Thousands of Asian members have already signed up - join us today to try a new level of Asian dating!

  4. 1
    Steve

    Millions of singles have found each other through e Harmony and you can too.

  5. 1
    Steve

    South West Strings Badminton Club We're 1, South West Strings. Xfactordates Classy speed dating with complimentary cocktail or champagne, plus occasional singles parties.

  6. 1
    Steve

    Women are certainly guilty of putting their kids ahead of their partner — maybe even more so than men, especially since they are nearly always the primary care giver in the event of divorce.

Leave a Reply

Your email address will not be published. Required fields are marked *