how to get title of every column?

my grid column title is from backend xml stream,how to get title of every column on web page?

thank you.

You can get label from title as
    grid.getColumnLabel(ind);
where ind - index of column

If you have multiline header and need to access some of its rows you can use

    grid.getColumnLabel(ind,row_index)
where row_index - index of row in header