First create the Class with necessary properties which the web service gives you.
Ex. if web service giving you dataset of employee the create class like below with getter and setter methods.
public class Employee {
private String EmployeeID;
private String Name;
private String Genre;
private String Email;
public String getEmployeeID() {
return EmployeeID;
}
public void setEmployeeID(String EmployeeID) {
this.EmployeeID = EmployeeID;
}
public String getEmail() {
return Email;
}
public void setEmail(String Email) {
this.Email = Email;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
}
Then make a Arraylist of "Employee" class like
ArrayList<employee> emplist=new ArrayList<employee>();</employee></employee>
Extract data from your web service responce to new object of "Employee" and then add that object to ArrayList
Then make the BaseAdapter and bind it to gridview like
MyGrid.setAdapter("...");