i am calling an webservice where my webservice is returing an object( which contains data like
empid name
1 kiran
2 mannu
3 tom
WebApplication1.DBLayer.Employee objEMP = ab.GetJobInfo();
now my objEMP has this collection of data
empid name
1 kiran
2 mannu
3 tom
how can i convert this object into( datatable or LIst) and bind to gridview
thanks in advance
The method in your DAL needs to return something like a
List<WebApplication1.DBLayer.Employee>. This will then fulfil the the requirement that DataSource must implement IEnumerable.Your code would looks something like this