How to view a Column Name in listbox by selecting the Column in DataGridView
Posted
by Umair
on Stack Overflow
See other posts from Stack Overflow
or by Umair
Published on 2009-10-01T06:21:48Z
Indexed on
2010/05/15
16:04 UTC
Read the original article
Hit count: 211
datagridview
Hey, im working on a project and i have to get the name(header text) of selected column in my listbox or textbox from datagridview, when i select any column it shows the name of that column in textbox or listbox.. i'll be very thankful to if you guys kindly help me out in this matter..
im trying to use the code on DataGridViewHeaderClickEvent "textBox1.Text=dataGridView1.SelectedColumns.ToString();"
© Stack Overflow or respective owner