sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                
if (e.Row.Cells[2].FindControl("txtPscj"is object)
                {
                    ((TextBox)e.Row.Cells[
2].FindControl("txtPscj")).Attributes.Add("onkeydown""if(event.keyCode==13) event.keyCode=9");
                }
                
if(e.Row.Cells[2].FindControl("txtSycj"is object)
                {
                    ((TextBox)e.Row.Cells[
2].FindControl("txtSycj")).Attributes.Add("onkeydown""if(event.keyCode==13) event.keyCode=9");
                }
                 
if(e.Row.Cells[2].FindControl("txtJmcj"is object)
                {
                    ((TextBox)e.Row.Cells[
2].FindControl("txtJmcj")).Attributes.Add("onkeydown""if(event.keyCode==13) event.keyCode=9");
                }
                 
if(e.Row.Cells[2].FindControl("txtZcj"is object)
                {
                    ((TextBox)e.Row.Cells[
2].FindControl("txtZcj")).Attributes.Add("onkeydown""if(event.keyCode==13) event.keyCode=9");
                }

            }

        }      

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-09-14
  • 2022-01-05
  • 2021-11-24
  • 2021-10-23
  • 2022-02-20
  • 2022-12-23
相关资源
相似解决方案