GridView editing mode calling databind

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
 
T

tshad

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top