Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Not able to bind a simple dictionary<string,string>

i would like to show the key string in first column and value in second coloum


thanks
Posted

1 solution

ou can't bind a dictionary to a DataGridView. You might want to consider building an IList out of the dictionary and then bind it to the DataGridView.
 
Share this answer
 
Comments
arun_pk 28-May-11 5:03am    
thanks ....do you have some samples
arun_pk 28-May-11 5:11am    
i got it thanks :)
Abhinav S 28-May-11 5:12am    
You are welcome.
Glad you found some examples.

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