Esempio n. 1
0
 private void BindGrid()
 {
     grdAdvertise.DataSource = AdvertiseService.Advertise_GetByAll();
     grdAdvertise.DataBind();
     if (grdAdvertise.PageCount <= 1)
     {
         grdAdvertise.PagerStyle.Visible = false;
     }
     else
     {
         grdAdvertise.PagerStyle.Visible = true;
     }
 }