GridView editing mode calling databind

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

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 said:
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?

Actually, the textboxes already have the data from the original databind.

So why does the GridView do another round trip to get the data it already
has?

Thanks,

Tom
 
Back
Top