G
Gordian
Hello,
I want to iterate over the objects stored in one column of a DataTable.
I can do it the following way:
---------------------------
foreach (DataRow dr in myDataTable)
{
// do something with the data in column 3
string s = dr[2].ToString();
}
---------------------------
But is there another way without the overhead of DataRow / DataTable?
(I assume there is an overhead!)
Perhaps a method, which returns an array of objects stored in one column
of a DataTable.
Greetings
Gordian
I want to iterate over the objects stored in one column of a DataTable.
I can do it the following way:
---------------------------
foreach (DataRow dr in myDataTable)
{
// do something with the data in column 3
string s = dr[2].ToString();
}
---------------------------
But is there another way without the overhead of DataRow / DataTable?
(I assume there is an overhead!)
Perhaps a method, which returns an array of objects stored in one column
of a DataTable.
Greetings
Gordian