How declare array of DataRow

G

Guest

Hi,
I want to declare array of System::Data::DataRow but how?
With single variable I write
System::Data::DataRow^ aRow but statement
System::Data::DataRow^[] - not works.
System::Data::DataRow* - not works.
System::Data::DataRow^^ - not works.
I need this array for store result of DataTable->Rows->Select(...)
Thanks,
Peter
 
P

Peter van der Goes

Petez said:
Hi,
I want to declare array of System::Data::DataRow but how?
With single variable I write
System::Data::DataRow^ aRow but statement
System::Data::DataRow^[] - not works.
System::Data::DataRow* - not works.
System::Data::DataRow^^ - not works.
I need this array for store result of DataTable->Rows->Select(...)
Thanks,
Peter
I may not understand the context of your question correctly, but assuming
you are working with rows in a DataTable, I believe you are going to have to
work within the DataRows collection of the DataTable.
 
B

Bart Mermuys

Hi,

Petez said:
Hi,
I want to declare array of System::Data::DataRow but how?
With single variable I write
System::Data::DataRow^ aRow but statement
System::Data::DataRow^[] - not works.
System::Data::DataRow* - not works.
System::Data::DataRow^^ - not works.
I need this array for store result of DataTable->Rows->Select(...)

eg.

using namespace stdcli:language;

array<System::Data::DataRow^ >^ dataRows = dataTable->Select("...");


HTH,
greetings
 

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

Top