Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > EditCommand event in Datagrid question

Thread Tools

EditCommand event in Datagrid question

Robert Pettersson
Posts: n/a

I have a few questions about the EditCommand event in the DataGrig in

When I get to the EditCommand event in my code I need to set the row that is
to be updated and then rebind the data
to the DataGrid. This is where I have my question, when I rebind the data.
If I make another call to the database, and
reload the data, Im not sure that I will get the same result. Data may have
been inserted since I loaded the DataGrid
the last time. And then the item that will be selected for edititng can be
the wrong one! And if I keep the datatable in
a viewstate or a sessionstate, the EditCommand event will be very slow if
its a little bigger DataSet/result that Im working
with. It works ok if I have like 10-20 rows and not that many columns, but
often you work with bigger results then that.

Im have been looking at sites that explains how to implement the
EditCommand event, but I havent found anything on how the best way to get
good performence and the correct result.

If anyone can give me any good tips I would be very greatful!



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATLAS, Gridview, EditCommand event not firing bill ASP .Net 2 06-16-2008 09:40 AM
datagrid editcommand question bill yeager ASP .Net 1 11-28-2004 05:21 PM
Re: datagrid EditCommand event Craig Deelsnyder ASP .Net 0 07-09-2004 05:46 PM
Non-displayed values in DataGrid that stay accessible in EditCommand event? Mike ASP .Net Datagrid Control 0 12-06-2003 04:01 PM
Non-displayed values in DataGrid that stay accessible in EditCommand event? Mike ASP .Net 0 12-05-2003 11:32 PM