Is there a Column-wise retrieval function?

  • Thread starter Thread starter Shmulik
  • Start date Start date
S

Shmulik

If I have a DataTable with n columns in it and m rows, is there a built in
function that would allow be to do this:


double [] vals = MyDataTable.ColumnValues[3]; // Assumes that all the values
for this column are of type double

I realize I can iterate through the table, but I was wondering if there is a
built-in efficient method.
TIA
 
Hi,

No, there isn't. It is really easy to write such a function...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top