GridView RowCommand event not firing

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

I have a GridView that looks something like this:



        
10条回答
  •  旧时难觅i
    2020-12-06 10:19

    Put the grid.Databind() inside if (!IsPostBack)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            grid.DataBind();
        }
    }
    

提交回复
热议问题