Column Hide/Show mechanism

Column Hide/Show mechanism

Hi,

I'm looking for a column hide/show mechanism.

I have a table that gets rendered as below.

http://img197.imageshack.us/i/expandb.png/

When I click on the black triangle button, I want the following to happen.

http://img525.imageshack.us/i/collapsey.png/

If you look at the Item Number row, clicking on the button hides/shows the item number variants (the extension after the first five chars) and displays only the main item (one with only 5 chars).

Please let me know how to achieve this or if this is even do-able.

Thanks
Arun