Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
QuestionSorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 3:11
Gareth H24-Oct-06 3:11 
The problem with my code at the moment is that it never goes to the second row, it will keep trying to query to the node detials. e.g: endless loop

I firstly pass the method the top node, and get its children.
So ExampleTopNode is passed to GetChildrenAndExpand, which inturn gets its children from the database and inserts it into the dataset (this works fine).

I then want to sort through ExampleTopNode's children which has now been inserted into "NodeInfo" table and get there children.

private void GetChildrenAndExpand(string Node_Name, string Node_Version)<br />
        {<br />
            //get children of the node and insert them into the NodeInfo table<br />
            GetChildrenFromDatabase(Node_Name, Node_Version); <br />
            <br />
            //get the data for the new rows that have been inserted<br />
            foreach (DataRow row in datatable.["NodeInfo"].Rows)<br />
            {<br />
                string NewNode_Name = row.ItemArray[0].ToString();<br />
                string NewNode_Version = row.ItemArray[1].ToString();<br />
<br />
                GetChildrenAndExpand(NewNode_Name, NewNode_Version); <br />
            }


Regards,
Gareth.
AnswerRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 3:14
mentorNot Active24-Oct-06 3:14 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 4:30
Gareth H24-Oct-06 4:30 
GeneralRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 4:51
mentorNot Active24-Oct-06 4:51 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 6:23
Gareth H24-Oct-06 6:23 
QuestionTo convert format of a file to other format through C# code Pin
praveen pandey24-Oct-06 3:08
praveen pandey24-Oct-06 3:08 
AnswerRe: To convert format of a file to other format through C# code Pin
Amar Chaudhary24-Oct-06 8:36
Amar Chaudhary24-Oct-06 8:36 
Questionmy computer process all data from internet Pin
nmhai8324-Oct-06 3:03
nmhai8324-Oct-06 3:03 
AnswerRe: my computer process all data from internet Pin
Larantz25-Oct-06 9:37
Larantz25-Oct-06 9:37 
QuestionProblem with ClickOnce Deployment in VS2005 Pin
JacquesDP24-Oct-06 2:57
JacquesDP24-Oct-06 2:57 
AnswerRe: Problem with ClickOnce Deployment in VS2005 Pin
Ed.Poore24-Oct-06 6:34
Ed.Poore24-Oct-06 6:34 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
ednrgc24-Oct-06 8:45
ednrgc24-Oct-06 8:45 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
Ed.Poore24-Oct-06 12:40
Ed.Poore24-Oct-06 12:40 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
JacquesDP24-Oct-06 20:48
JacquesDP24-Oct-06 20:48 
QuestionHow to know whether remote file is present or not before downloading it using webclient Pin
engsrini24-Oct-06 2:07
engsrini24-Oct-06 2:07 
AnswerRe: How to know whether remote file is present or not before downloading it using webclient Pin
Le centriste24-Oct-06 4:48
Le centriste24-Oct-06 4:48 
QuestionFont Handling in Groupbox [modified] Pin
chricla24-Oct-06 2:06
chricla24-Oct-06 2:06 
QuestionIn sql error? (urgent) Pin
onlybabla24-Oct-06 1:54
onlybabla24-Oct-06 1:54 
AnswerRe: In sql error? (urgent) Pin
Colin Angus Mackay24-Oct-06 2:16
Colin Angus Mackay24-Oct-06 2:16 
AnswerRe: In sql error? (urgent) Pin
ednrgc24-Oct-06 2:43
ednrgc24-Oct-06 2:43 
QuestionBorder selection Pin
sathishtl00724-Oct-06 1:11
sathishtl00724-Oct-06 1:11 
Questionwindows form resize Pin
t_nedelchev24-Oct-06 1:03
t_nedelchev24-Oct-06 1:03 
AnswerRe: windows form resize Pin
V.24-Oct-06 2:28
professionalV.24-Oct-06 2:28 
AnswerRe: windows form resize Pin
Dan Neely24-Oct-06 3:35
Dan Neely24-Oct-06 3:35 
GeneralCasting generic lists Pin
Ed.Poore24-Oct-06 1:00
Ed.Poore24-Oct-06 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.