Click here to Skip to main content
15,905,912 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
how to get names of columns in a datagridview at run time...?
Posted
Updated 27-Jul-16 2:18am

sizin yazacağınız,
wrv


C#

 
Share this answer
 
string s = GridView1.Columns[Index].HeaderText;
 
Share this answer
 
try this
column name
this.dataGridView.Columns[0].Name

Column headertext
this.dataGridView.Columns[0].HeaderText;
 
Share this answer
 
v3
Comments
version_2.0 19-May-11 8:05am    
Thanks...

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