Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2225
Hiding a column
posted

I'm certain that I saw something like this in one of the blogs/samples, but can't seem to find it this morning.

I need to define a column, but don't want it to display. This is because I need the data for that field available to the rowtemplate I've defined. Without the column being defined, the data is empty in the rowtemplate.

Thanks,
Tony

 

Parents
  • 2225
    posted

    I've kind of worked around it, but I'm not satisfied with the results.

    I defined the column as the last column in the grid, giving it a header text of " " (with a space). I then set the width to "0".

    In the rowtemplate I added a spot for the data and set the style='display:none'

    This works, but leaves a small space in the header for the "hidden" column header. This causes the horizontal scrollbar to appear and it just doesn't look right. I'm hoping there is a better way.

Reply Children