How declare array of DataRow

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
Back
Top