none
gridview in asp.net RRS feed

  • Question

  • Although I bind data in every step, like, editing or updating event of the <g class="gr_ gr_84 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="84" id="84">gridview</g>, I still need to click edit button twice in order to edit the item and I don't know why.

    this is part of my code:

    should I add if(!IsPostBack) on it?

    protected void UserView_RowEditing(object sender, GridViewEditEventArgs e)
            {
                this.UserView.EditIndex = e.NewEditIndex;
                BindUser();
                BindCom();
            }

    your help is much appreciated.

    Thursday, February 28, 2019 2:31 AM

All replies

  • Hi NagasaiBHS,

    Thank you for posting here.

    According to your post, your question is more relevant to asp.net, please post in the following forum.

    https://forums.asp.net/24.aspx/1?Web+Forms+Data+Controls

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, February 28, 2019 6:31 AM