Gridview - Edit Mode - When I press return on my keyboard, the edit item index changes to the first
Posted
by hamlin11
on Stack Overflow
See other posts from Stack Overflow
or by hamlin11
Published on 2010-05-13T18:48:44Z
Indexed on
2010/05/13
18:54 UTC
Read the original article
Hit count: 211
When I am in edit mode on any row of my GridView and I press Return while the focus is in one of the row's textboxes, instead of triggering the update button, my GridView1.RowEditing event is fired with a NewEditIndex of 0
This causes the first row to become editable and I lose any values typed into the previous row.
How can I stop this from happening?
Thanks
© Stack Overflow or respective owner