Steps.
1.Initially icon will be visible in one of the column header.
2.When user clicks on the icon, Then the same icon should be visible on all the column headers.
What are we, mind readers?, post some working code so that we might stand a chance of helping, otherwise answering this question is a true shot in the dark. The more info you give the better the quality of answers you are likely to receive.