How to add Rows to GetChildRows ?

S

Softwaremaker

Hi Fellows,

Just a simple question,

I have a table with one row. This row itself has got multiple Child Rows.
Once I retrieve this array of rows using GetChildRows, how do I add a row
into it ?

Thanks for any help or advice.

--
William T
Chief Software Developer
Software Architect
Softwaremaker.Net Pte Ltd

+++++++++++++++++++++++++++++
 
S

Scot Rose [MSFT]

Not sure what you mean. Do you mean add a row to the Array? Do you have a code sample that shows what you are doing?

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.




--------------------
 
S

Softwaremaker

Hi Scott,

Yes...adding a row to an array of Rows. But after that,
how do we assign this array back into the GetChildRows
again.

See below for Source :
'====================
For Each myRelation In ds.Tables(0).ChildRelations
For Each myRow In ds.Tables(0).Rows
arrRows = myRow.GetChildRows(myRelation)
MessageBox.Show(arrRows.GetLength(0))
ReDim Preserve arrRows(arrRows.GetLength(0))
'How to add a Row into arrRows ???
'How to assign arrRows back into ChildRows ???
Next myRow
Next myRelation
'====================
-----Original Message-----
Not sure what you mean. Do you mean add a row to the
Array? Do you have a code sample that shows what you are
doing?
Want to know more? Check out the MSDN Library at
http://msdn.microsoft.com or the Microsoft Knowledge Base
at http://support.microsoft.com
 
S

Scot Rose [MSFT]

You wan tto put the contents of the array back into the Dataset?

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.




--------------------
 

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