//bind user grid view for table users
    private dsApplicationsCompleted BindUserGridView()
    {
        dsApplicationsCompleted userListing = myBusinessLayer.SelectAllUsers();

        gvUserList.DataSource = userListing.tblApplicationsCompleted;

        //binding user list grid view
        gvUserList.DataBind();
        Cache.Insert("CustomerDataSet", userListing);

        return userListing;
    }
Exemplo n.º 2
0
    /// BindUserGrid method
    // binds gridview to data
    private dsProgramaholics BindUserGrid()
    {
        // path
        string       tempPath = Server.MapPath("~/App_Data/Programaholics.mdb");
        clsDataLayer myData   = new clsDataLayer(tempPath);

        // get users
        dsProgramaholics userList = myBusinessLayer.SelectAllUsers();

        // fill gridview
        gvUsers.DataSource = userList.tblUserDetails;

        // bind gridview
        gvUsers.DataBind();
        Cache.Insert("UserDataSet", userList);

        return(userList);
    }