---
title: "Iterate through DevExpress Menu items in extraBar"  
description: "Iterate through DevExpress Menu items in extraBar"  
author: "Anonymous User"  
published: 2014-11-20  
updated: 2014-11-20  
canonical: https://www.mindstick.com/forum/12647/iterate-through-devexpress-menu-items-in-extrabar  
category: "asp.net"  
tags: ["devexpress"]  
reading_time: 1 minute  

---

# Iterate through DevExpress Menu items in extraBar

How to iterate through [DevExpress](https://www.mindstick.com/forum/34326/fill-devexpress-gridview-with-list) Menu [items](https://www.mindstick.com/forum/33812/getting-number-of-items-selected-in-uicollectionview-in-ios) in XtraBar ?

I need to iterate with a loop through all the menu items in xtrabar and i need to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) certain [menu item](https://www.mindstick.com/forum/339/highlighting-the-menu-item) on the way if some [conditions](https://www.mindstick.com/blog/394/javascript-if-else) are satisfied ?

## Replies

### Reply by Royce Roy

Try following:

```
    foreach(DevExpress.XtraBars.BarItem item in bar.Manager.Items)    {       //Do sth.    }
```


---

Original Source: https://www.mindstick.com/forum/12647/iterate-through-devexpress-menu-items-in-extrabar

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
