haha hoho

haha hoho

  • NA
  • 2
  • 6.5k

Storing data retrieved from web service reference as array/arraylist

Jul 15 2011 12:26 AM
so i am now doing a silverlight application , language is C# and i have succesfully retrieved the data from web service refernce and is able to display it on the mainpage.xaml in grid view. however is there any way for me to store my data as array/arraylist so that instead of displaying all the column data in the grid view, i only want it to display only one column of data. any experts that can help me out on this? below is my current basic code
[OperationContract]
public List<location> Getlocations()
{
DataClassesDBDataContext db = new DataClassesDBDataContext();

var mlocations = from location in db.locations
select location;
return mlocations.ToList();
}
}
}

Answers (2)