c# - Concise way to format columns in a gridview? -


I know this is a simple question, but despite searching I can not find anything specific to my problem.

I have a Gridviewview with 9 columns or so. I want to change both column names and edit the number of visible columns. Therefore

  instead. X | Y Jade. 2 6 7   

I like

  | New x | New z | 2 7   

I know that I can manually edit column names and can not be visible to them or, but there is a way to do something like: if (column = Y) then (display column) and (column name = new y)?

Highly appreciated.

You can control events when they modify the column and any change at that time You want.

Comments