Click here to Skip to main content
14,242,982 members
   

C#

 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 5:00
mve#realJSOP10-Jun-19 5:00 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 5:47
mveGerry Schmitz10-Jun-19 5:47 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff9-Jun-19 15:22
mveBillWoodruff9-Jun-19 15:22 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 0:21
memberSamiul0710-Jun-19 0:21 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 1:27
mveBillWoodruff10-Jun-19 1:27 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 3:19
memberSamiul0710-Jun-19 3:19 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 3:45
protectorOriginalGriff10-Jun-19 3:45 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 6:59
mveBillWoodruff10-Jun-19 6:59 
Note: it's possible the Excel range you show has 'split row; and, there are other ways you can create simulated hierarchies in Excel: that's why is crucial to examine the structure of the DataTable.

You need to do this: insert this code after the line beginning: da.Fill(dt);
for (int i = 0; i < dt.Rows.Count; i++)
{
    DataRow row = dt.Rows[i];

    Console.Write($"row: {i}\t");

    for (int j = 0; j < dt.Columns.Count; j++)
    {
        Console.Write($"{row[j]}\t");
    }

    Console.WriteLine();
}
Put a break-point just after this inserted code. Run the code. When it stops at the break-point, copy the output in the Console Window, and save it so you can study it. Post it here.

Study the structure revealed, and start thinking of what has to happen to map that to the ComboBoxes.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 12:27
memberSamiul0710-Jun-19 12:27 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 12:44
memberSamiul0710-Jun-19 12:44 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 17:05
mveBillWoodruff10-Jun-19 17:05 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff11-Jun-19 0:53
mveBillWoodruff11-Jun-19 0:53 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0711-Jun-19 5:31
memberSamiul0711-Jun-19 5:31 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 4:37
mve#realJSOP10-Jun-19 4:37 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Richard MacCutchan10-Jun-19 4:49
protectorRichard MacCutchan10-Jun-19 4:49 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 4:57
mve#realJSOP10-Jun-19 4:57 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 5:40
mveGerry Schmitz10-Jun-19 5:40 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 9:17
mve#realJSOP10-Jun-19 9:17 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 10:04
mveGerry Schmitz10-Jun-19 10:04 
QuestionHow to clean all the installers? Pin
_Q12_7-Jun-19 3:55
member_Q12_7-Jun-19 3:55 
AnswerRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 4:05
protectorOriginalGriff7-Jun-19 4:05 
PraiseRe: How to clean all the installers? Pin
Richard Deeming7-Jun-19 4:56
mveRichard Deeming7-Jun-19 4:56 
GeneralRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 5:06
protectorOriginalGriff7-Jun-19 5:06 
GeneralRe: How to clean all the installers? Pin
_Q12_7-Jun-19 19:40
member_Q12_7-Jun-19 19:40 
GeneralRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 20:11
protectorOriginalGriff7-Jun-19 20:11 

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.