Click here to Skip to main content
15,937,127 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I'm binding data grid view using array list in windows form application

The Header of the column are same as the member name in the array list

I want to Re Name the He Header and i want to display only few columns
Please help me I'm using C# .Net
G-code101 5-Feb-14 11:35am    
Provide me with some sort of a code snippet where you are stuck... So I may be able to help

1 solution

You can change the headerText property of the columns
E.g. grid.Columns[0].HeaderText = "First Column";

To hide and show columns set Visible to false.
E.g. grid.Columns[0].Visible = false;
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900