Пример #1
0
        private void RefreshGridView()
        {
            List <Trail> eList = new List <Trail>();

            DBServiceReference.Service1Client client = new DBServiceReference.Service1Client();
            eList = client.GetAllTrails().ToList <Trail>();

            // using gridview to bind to the list of employee objects
            GridView1.Visible    = true;
            GridView1.DataSource = eList;
            GridView1.DataBind();
        }