Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all,

I am making vb.net windows application.

I have a Datagrid view and I am fetching the data from database in the grid.

The headers of the database are coming in grid header.

The thing is that I don't want to take database header, I want to take my own header.

I want to have my own headers in the Grid.

How to avoid database headers?
Posted
Updated 7-Sep-10 3:43am
v2
Comments
[no name] 7-Sep-10 8:08am    
What do you mean by "database headers"?
Dalek Dave 7-Sep-10 9:44am    
Edited for Grammar, Readability, Syntax and Clarity.

1 solution

Set datagrid AutoGenerateColumns propriety to false.
 
Share this answer
 
v2
Comments
Dalek Dave 7-Sep-10 9:44am    
Yes, that's what I'd do.

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