Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need code for Word Wrapping- Plz help Pin
Luc Pattyn3-Sep-07 5:15
sitebuilderLuc Pattyn3-Sep-07 5:15 
GeneralRe: Need code for Word Wrapping- Plz help Pin
Hum Dum4-Sep-07 19:05
Hum Dum4-Sep-07 19:05 
GeneralRe: Need code for Word Wrapping- Plz help Pin
Luc Pattyn5-Sep-07 8:50
sitebuilderLuc Pattyn5-Sep-07 8:50 
GeneralNo where to go........- Plz help Pin
Hum Dum18-Sep-07 19:12
Hum Dum18-Sep-07 19:12 
AnswerRe: TRICKY&CHALLENGING LOOP Pin
Pete O'Hanlon3-Sep-07 2:12
mvePete O'Hanlon3-Sep-07 2:12 
QuestionConersion to DateTime Data type from String Pin
Prashant C3-Sep-07 2:02
Prashant C3-Sep-07 2:02 
AnswerRe: Conersion to DateTime Data type from String Pin
darkcalin3-Sep-07 4:06
darkcalin3-Sep-07 4:06 
QuestionI'm lost while looping! Pin
Muammar©3-Sep-07 1:46
Muammar©3-Sep-07 1:46 
And I need a hand in this
tree_Level.Nodes.Clear();
for (int x = 0; x < dataSet1.COMMS.Rows.Count; x++)
{
        tree_Level.Nodes.Add(dataSet1.COMMS.Rows[x]["COMM_NAME"].ToString() + "_" + dataSet1.COMMS.Rows[x]["COMM_ID"].ToString(), dataSet1.COMMS.Rows[x]["COMM_NAME"].ToString(), 0, 0);
        for (int y = 0; y < dataSet1.UZL.Rows.Count; y++)
        {
            if (dataSet1.UZL.Rows[y]["UZ_COMM_ID"].ToString() == dataSet1.COMMS.Rows[x]["COMM_ID"].ToString())
            {
                tree_Level.Nodes[x].Nodes.Add(dataSet1.UZL.Rows[y]["UZ_NAME"].ToString() + "_" + dataSet1.UZL.Rows[y]["UZ_ID"].ToString(), dataSet1.UZL.Rows[y]["UZ_NAME"].ToString(), 1, 1);
                for (int z = 0; z < dataSet1.VILS.Rows.Count; z++)
                {
                    if (dataSet1.VILS.Rows[z]["VIL_UZ_ID"].ToString() == dataSet1.UZL.Rows[y]["UZ_ID"].ToString())
                            tree_Level.Nodes[x].Nodes[0].Nodes.Add(dataSet1.VILS.Rows[z]["VIL_NAME"].ToString() + "_" + dataSet1.VILS.Rows[z]["VIL_ID"].ToString(), dataSet1.VILS.Rows[z]["VIL_NAME"].ToString(), 2, 2);
                    }
            }
        }
 }

The last level in the loop is not doing fine (it puts all the second level subordinates under one node that is the first node in level twoFrown | :(

ps. I know it's a mess but please just focus on the two inner nested loops.


Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)

AnswerRe: I'm lost while looping! Pin
Pete O'Hanlon3-Sep-07 2:00
mvePete O'Hanlon3-Sep-07 2:00 
GeneralRe: I'm lost while looping! Pin
Muammar©3-Sep-07 2:15
Muammar©3-Sep-07 2:15 
GeneralRe: I'm lost while looping! Pin
Pete O'Hanlon3-Sep-07 2:23
mvePete O'Hanlon3-Sep-07 2:23 
QuestionUsing gSOAP with C# Pin
Zahid Ajaib3-Sep-07 1:14
Zahid Ajaib3-Sep-07 1:14 
QuestionCABing UnCABing... Pin
Bhavesh Bagadiya3-Sep-07 0:35
Bhavesh Bagadiya3-Sep-07 0:35 
AnswerRe: CABing UnCABing... Pin
Bhavesh Bagadiya3-Sep-07 2:35
Bhavesh Bagadiya3-Sep-07 2:35 
GeneralRe: CABing UnCABing... Pin
Vasudevan Deepak Kumar3-Sep-07 2:39
Vasudevan Deepak Kumar3-Sep-07 2:39 
QuestionIs Crystal Report is not come with .Net Framework? Pin
Kumar Arun3-Sep-07 0:25
Kumar Arun3-Sep-07 0:25 
AnswerRe: Is Crystal Report is not come with .Net Framework? Pin
J4amieC3-Sep-07 0:39
J4amieC3-Sep-07 0:39 
GeneralRe: Is Crystal Report is not come with .Net Framework? Pin
Vasudevan Deepak Kumar3-Sep-07 1:34
Vasudevan Deepak Kumar3-Sep-07 1:34 
QuestionParsing XML from a string Pin
Anders Molin3-Sep-07 0:00
professionalAnders Molin3-Sep-07 0:00 
AnswerRe: Parsing XML from a string Pin
Sandeep Akhare3-Sep-07 0:08
Sandeep Akhare3-Sep-07 0:08 
AnswerRe: Parsing XML from a string Pin
J4amieC3-Sep-07 0:36
J4amieC3-Sep-07 0:36 
GeneralRe: Parsing XML from a string Pin
Anders Molin3-Sep-07 0:49
professionalAnders Molin3-Sep-07 0:49 
QuestionLength of two dimensional !!!!!!!! Pin
mihirhp2-Sep-07 23:41
mihirhp2-Sep-07 23:41 
AnswerRe: Length of two dimensional !!!!!!!! Pin
Pete O'Hanlon3-Sep-07 1:44
mvePete O'Hanlon3-Sep-07 1:44 
QuestionAuto numbering new grid rows Pin
Muammar©2-Sep-07 23:00
Muammar©2-Sep-07 23: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.