Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:02:58+00:00 2026-06-02T01:02:58+00:00

Good evening,someone asked me to help her with fixing some code for asp.net, she

  • 0

Good evening,someone asked me to help her with fixing some code for asp.net, she showed me her code but I couldn’t find a way to fix it .So I’m wondering if someone would take his time to help me fixing it.

As she said , she’s using asp.net ( net f.4 ) .On a page she added a gridview and used a sqldatasource to bind the information from data table to the gridview .

  • The aim is , on the GridView row_updating if the condition is true
    then a certain cell of the current editing row will be updated with a
    new value.
    But , here is the problem :

  • Let’s say I have two rows on the gridview!

  • If I click the edit button of the first row and then press the update button nothing happens.
  • But when I click the edit button of the second row then I can see the
    updated value for the cell updated of the first row and If I click update or cancel I
    can’t see the value anymore.
  • And in the datatable the value is not updated.

Can someone help me fix it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:03:00+00:00Added an answer on June 2, 2026 at 1:03 am

    Thats because you are not updating your gridview after executing Update statement. You need to call DataBind() after update on gridview

    GridView1.DataSource = yourDataSource;
    GridView1.DataBind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi and good evening, hope someone can help. I am trying to get some
Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in
Good evening, I am working on a program where some application config info is
Good evening, I have been trying to wrap my head about this, below, code
Good evening fellow coders, and thank you in advance for any help/attention. This is
good evening everone , i have phpmailer code which allow me to connect to
Good evening I've got a little problem with my DataGridView in a .NET Windows
Good evening, I'm having trouble with model binding and validation but I don't know
Good evening :-)! I have this code to use Drag & Drop method for
Good evening, Following is the code I used for reading the files and folders

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.