GridView RowCommand event not firing

前端 未结 10 716
粉色の甜心
粉色の甜心 2020-12-06 09:42

I have a GridView that looks something like this:



        
10条回答
  •  盖世英雄少女心
    2020-12-06 10:42

    If your code is like this:

    protected void Page_Load(object sender, EventArgs e)
    {
        BindGrid(dgv);
        if (!IsPostBack)
        {
    
        }
    }
    

    Put BindGrid() inside the !isPostBack block

提交回复
热议问题