Question: I need to see if a dropdown box has selected a key out of a dictionary. The dictionary is in another method (I believe its called a method). I've been searching how to make the dictionary global, but i can't figure out how to do it. Maybe there is a better way?

Thanks for any help, I wrote some code to show what I'm trying to accomplish below.

```
public void Dictionary()
        {
            var names = new Dictionary<string, double[]>();
            names.Add("Kevin", new[] { 74.5, 6.35});
            names.Add("Rob", new[] { 2.5, 9.46}); 
        }

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            foreach (var kvp in names)
            {
                if combobox.Text == kvp.Key
                {
                    solution = true;
                }
            }

        }

```

Answer: 
It seems like what you want is grouping.

[![UI5 sap.m.Table grouped items](https://i.stack.imgur.com/DXC9u.png)](https://i.stack.imgur.com/DXC9u.png)

You can achieve that by using the grouping feature of your items binding.

```xml
<Table items="{
  path: 'modelExample>/',
  *sorter: {
 path: 'title',
 group: true
 }*
}">
```

[Doc: *Sorting, Grouping, and Filtering for List Binding*](https://openui5.hana.ondemand.com/topic/ec79a5d5918f4f7f9cbc2150e66778cc)

---

`sap.m.Column` doesn't have a `text` property.

You have to define your columns like this

```xml
<Column>
  <Text text="Name" />
</Column>

```
What I think you are searching for is the complex binding command. In the index.html where you load the sap-ui-core.js, you need (if not already done) to set this command: `data-sap-ui-xx-bindingSyntax="complex"`

Then you can modify your code to this, for example:

```
<Table>
  <columns>
    <Column text="Name" width="200px" />
    <Column text="Number" width="200px" />
    <Column text="All" width="200px" />
  </columns>
  <ColumnListItem>
    <Text text="{name}" />
    <Text text="{number}" />
    <Text text="{title} {name} {number}" />
  </ColumnListItem>
</Table>

```

Does this answer your question?