Link to home
Start Free TrialLog in
Avatar of RedXavier2k4
RedXavier2k4

asked on

I have to create a GridView from a List<>

I have to create a GridView from a List that hold data from an SQL Server table. The. A web service is being using by I think LINQ, and is added to a List<>. This is the code I have so far in the EmployeeManager. How can I populate my GridView with this List<> data. The page load is from EmployeeManager.aspx.cs and my GridView is in EmployeeManager.aspx
I need help like yesterday, thanks

EmployeesAdmin.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Psc.Employees.EAdmin
{
    public class EmployeesAdmin
    {
       private Admin.iAdmin _ws;

       public List<Admin.vwEmployees> GetEmployees(out string x, int i, bool blDisabled)
       {
           return _ws.GetEmployees(out x, i, blDisabled);
       }
    }
}

Open in new window


EmployeeManager.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
	//Create Data Source from List
}

Open in new window

SOLUTION
Avatar of Ioannis Paraskevopoulos
Ioannis Paraskevopoulos
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial