GridView editing mode calling databind

Discussion in 'ASP .Net' started by tshad, Feb 9, 2010.

  1. tshad

    tshad Guest

    I have a GridView that has about 500 rows in .

    The rows have a command field on it are editable.

    The problem is that everytime I press the edit button, it does a query of
    the database to get the same data it already has.

    This is slowing things down.

    I already have it going slow because it has to redraw the GridView to open
    up the row and display the textboxes.

    Is there a way to just move the data from the lables of that row to the text
    boxes and just display the changed row and not go the database?

    Thanks,

    Tom
     
    tshad, Feb 9, 2010
    #1
    1. Advertising

  2. On Feb 10, 12:26 am, "tshad" <> wrote:
    > I have a GridView that has about 500 rows in .
    >
    > The rows have a command field on it are editable.
    >
    > The problem is that everytime I press the edit button, it does a query of
    > the database to get the same data it already has.
    >
    > This is slowing things down.
    >
    > I already have it going slow because it has to redraw the  GridView to open
    > up the row and display the textboxes.
    >
    > Is there a way to just move the data from the lables of that row to the text
    > boxes and just display the changed row and not go the database?
    >
    > Thanks,
    >
    > Tom


    Hi Tom

    I think there are two ways on how to fix that. You either can limit
    your grid by getting not all 500 rows in the same time, or you can
    make a custom edit. As for example for that you can take a look at the
    following post: http://forums.asp.net/t/1368247.aspx

    Hope this helps
     
    Alexey Smirnov, Feb 10, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John J Lee
    Replies:
    3
    Views:
    488
    bruno at modulix
    Dec 1, 2005
  2. Edward Loper
    Replies:
    0
    Views:
    473
    Edward Loper
    Aug 7, 2007
  3. John J Lee
    Replies:
    0
    Views:
    527
    John J Lee
    Aug 7, 2007
  4. Edward Loper

    mmm-mode, python-mode and doctest-mode?

    Edward Loper, Aug 9, 2007, in forum: Python
    Replies:
    0
    Views:
    438
    Edward Loper
    Aug 9, 2007
  5. Michael
    Replies:
    0
    Views:
    226
    Michael
    Dec 29, 2003
Loading...

Share This Page