예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ListViewSensores.DataSource = dispositivoService.obterAtuadores();
         ListViewSensores.DataBind();
     }
 }
예제 #2
0
        protected void ListViewSensores_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
        {
            //set current page startindex, max rows and rebind to false
            lvDataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
            ListViewSensores.DataSource = dispositivoService.obterAtuadores();

            //rebind List View
            ListViewSensores.DataBind();
        }