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

Leaving Insert Mode on a Gridview

2 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Arnold
Top achievements
Rank 2
David Arnold asked on 09 Sep 2010, 08:12 PM
Hi all,

This seems like it should be so easy, but it's not. I have a custom sub to handle the insert command. After done, I rebind my grid and the data shows up normally, but I'm still in "insert" mode. How do I get out of it?

The RadGrid is embedded within a formview control, so here is my rebind code:

Dim gvWebsites As RadGrid
gvWebsites = TryCast(frmFeederFund.FindControl("gvWebsites"), RadGrid)
gvWebsites.Rebind()

Thanks for your help!

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 10 Sep 2010, 05:58 AM
Hello David,

Check whether you have set AllowAutomaticInserts to true in MasterTableView. If so set it as false and see if it works now.


Thanks,
Princy.
0
David Arnold
Top achievements
Rank 2
answered on 10 Sep 2010, 03:44 PM
That fixed it, thanks so much!!
Tags
Grid
Asked by
David Arnold
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
David Arnold
Top achievements
Rank 2
Share this question
or