本文介绍了当我点击按钮C#时调用Gridview Rowdatabound的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  protected   void  ButtonAdd_Click(对象发​​件人,EventArgs e)
{
CalculateTotal();
// txttotwt_TextChanged(null,null);
AddNewRow();
gvMeatDispatch.RowDataBound + = new GridViewRowEventHandler(gvMeatDispatch_RowDataBound);
// ddlbranchdate_SelectedIndexChanged(this,EventArgs.Empty);
}





当我点击此代码时,我的rowdatabound事件未触发...请帮助我,如何在按钮点击中调用行数据绑定事件logic ..

解决方案



protected void ButtonAdd_Click(object sender, EventArgs e)
  {
      CalculateTotal();
      // txttotwt_TextChanged(null, null);
      AddNewRow();
      gvMeatDispatch.RowDataBound += new GridViewRowEventHandler(gvMeatDispatch_RowDataBound);
      //ddlbranchdate_SelectedIndexChanged(this, EventArgs.Empty);
  }



when i click this code,my rowdatabound event is not firing...please help me ,how to call row data bound event in button click logic..

解决方案



这篇关于当我点击按钮C#时调用Gridview Rowdatabound的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:53
查看更多