databinding
Back to the old grind of retrieving xml data from a web service and somehow displaying it in a listbox. I keep rehashing how to do this, seems I can't remember. The basic code snippet is:
foreach(DataTable dt in newDataSet.Tables)
{
foreach(DataRow dr in dt.Rows)
{
foreach(DataColumn dc in dt.Columns) //pick a column
{
newArrayList.Add(dr[dc].ToString());
//dc.ToString();
}
}
}
I include the commented line because it's what you'd expect to put in, but it's wrong.
Not that my code is working yet: seems the web service returns a string instead of an arraylist. Hmmm.