T
Tony Yates
I am wanting to know the most effecient way of converting a datrow to a
hashtable.
Many thanks if you can help
Kind Regards
Tony
hashtable.
Many thanks if you can help
Kind Regards
Tony
Tony Yates said:I am trying to retrive data from a datasource which will only return one
row of data.
I then want to stick that in a hashtable so it looks a little like the
following
key value
name tony
age 20
sex male
so i guess i am wanting to do something like the following
foreach(field in datarow)
{
ht.Add(datarow.fieldname, datarow.value);
}
Does this make sense ?
Hi Tony,
I am trying to retrive data from a datasource which will only return one
row of data.
I then want to stick that in a hashtable so it looks a little like the
following
key value
name tony
age 20
sex male
so i guess i am wanting to do something like the following
foreach(field in datarow)
{
ht.Add(datarow.fieldname, datarow.value);
}
Does this make sense ?
Why don't you just use row?
row["columnname"]