Using a list as a data source for DataGridView

前端 未结 3 1605
迷失自我
迷失自我 2020-11-30 05:50

I\'ve extracted the setting names and their respective values out of a configuration file into an ordered dictionary. The dictionary contains keys and values which are of th

3条回答
  •  粉色の甜心
    2020-11-30 06:01

    Set the DataGridView property

        gridView1.AutoGenerateColumns = true;
    

    And make sure the list of objects your are binding, those object properties should be public.

提交回复
热议问题