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

Insertrow commits edit

1 Answer 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 24 May 2011, 06:04 PM
Hi,

In some of my gridview's when I click for the second time on the insertrow then rowvalidating is triggered before I commit the newrow with the enter key.
When I do the insert with the insert key  then there's no problem I cannot pinpoint this problem, any ideas?
Thanks,

Thomas

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 25 May 2011, 07:58 AM
Hi,


In addingnewdataitem the current cell was selected like:
grid.CurrentCellInfo=new CurrentCellInfo(e.NewObject,grid.columns(3),grid)

after replacing this line with:
grid.CurrentColumn=grid.Columns(3)

the problem seems to be solved.

Thomas

Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or