How to get header column values

I have a custom filter that I’m making for a multi-select.
I need to be able to get the header value(s) from the row(s) above the row that the multi-select is in.
I don’t see a way to do that in the API. How can I do that?

you can add id to the custom content in the header and get selected value with following code:

document.getElementById(id).value

I’m adding a row header:
mygrid.attachHeader("&nbsp,{{ headers_labels }}");

How would I assign a specific ID to the header cells?

You can add id to the element in header cell when you define custom shortcut.