Leaving Insert Mode on a Gridview

3 posts, 1 answers
  1. David Arnold
    David Arnold avatar
    13 posts
    Member since:
    Jul 2009

    Posted 09 Sep 2010 Link to this post

    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. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Sep 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Arnold
    David Arnold avatar
    13 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2010 Link to this post

    That fixed it, thanks so much!!
Back to Top