How to view a Column Name in listbox by selecting the Column in DataGridView
- by Umair
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();"