Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys ,

When i choose any column in dataGridview (Winform ) , All rows (values ) should be transfered into listBox control.

Think that i have one column named TelephoneNumbers, When i choose it , All telephone numbers should be transfared into listBox.

like pictured below :
StudentName    |    StudentID      |    StudentPhone  |   <<< Columns 

John                   1233           +905555555555         
Smith                  55555          +9055551213123 
Hasan                 42323           +905212323232123

>>>>> When i choose StudentPhone column >>>
+90555555555
+905555123123
+905212323232123  SHOULD BE TRANSFARED listbox..

please tell me how to do it..thanks for helping in advance

image is here : http://img426.yukle.tc/images/8287datagridview.png[^]
Posted
Updated 8-Nov-12 9:46am
v2

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