locked
menu item RRS feed

  • Question

  • User1499037141 posted

    how i can add a chil items in a menu control with code this is my code for add the parents items

                DataSet ds = Direction.Getalldirection();
    
                foreach (DataRow parentItem in ds.Tables["Direction"].Rows)
                {
                    MenuItem categoryItem = new MenuItem((string)parentItem["NomDirection"]);
                    DataSet de = Departement.Getalldep((string)parentItem["NomDirection"]);
                    Menu1.Items.Add(categoryItem);
             
                }
    
    
            }
    
    
    the datasete conatin the childs item 
    Monday, September 5, 2011 2:17 PM

Answers