This is a migrated thread and some comments may be shown as answers.

problem when edit grid item

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Csaba
Top achievements
Rank 1
Csaba asked on 01 Jul 2013, 02:53 PM

Hi,

A have a problem with asp.net radgrid editing:

In my page there is a grid with edittemplate and when two different client click the item and open an editform and If one of the clients save, the other one sees the good data yet, but if he saves it overwrites an other record because the rowindex shifted meanwhile.

How can i solve this problem?
What is the best solution for this?

Please help me.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Csaba
Top achievements
Rank 1
answered on 02 Jul 2013, 10:03 AM
Hi,

I solved this problem:

when i clicked save button -> first updatecommand run with reload(rebind) the grid ,
before really updated the database and skiped rowindex.

now i moved this code (rebind) to sqldatasource_updating end and it works.

Tags
Grid
Asked by
Csaba
Top achievements
Rank 1
Answers by
Csaba
Top achievements
Rank 1
Share this question
or