G
Guest
I create a class with object properties. Then, iterate through the rows of a
dataset and equate select columns to the properties in the class as follows.
foreach(DataRow r in this.ds.table)
{
Item item = new Item();
item.property1 = r["column1'"];
items.Add(item);
}
However, when I make change to the class property, the value does not change
in the dataset. Is there anyway to equate these objects by reference and not
value?
Thanks,
Duane
dataset and equate select columns to the properties in the class as follows.
foreach(DataRow r in this.ds.table)
{
Item item = new Item();
item.property1 = r["column1'"];
items.Add(item);
}
However, when I make change to the class property, the value does not change
in the dataset. Is there anyway to equate these objects by reference and not
value?
Thanks,
Duane