views:

231

answers:

0

I want to create a "Hide/Show Column" function for a GridView. Scenario: When user right-clicks to the header of a column and select "Hide", all the selected column will be hidden.

Status: This is easy by setting "Visible" property or setting the Width to 0. But I want to imitate the effects done by Excel when a column is hidden. The hidden column's header will leave a small mark (Please try hiding a column in Excel if my explanation is not enough).

How can I implement it in C#?