// 根据查询条件,更换Empty提示
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        
if (e.Row.RowType == DataControlRowType.EmptyDataRow)
        {

            Label lblEmptyShow 
= (Label)GridView1.Controls[0].Controls[0].FindControl("lblEmptyShow");  //第一层Control是Table,第二层Control是Row
            lblEmptyShow.Text = "Sorry, there are no new leaveword now.";
        }
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2021-12-25
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案