how to bind datatable to datagridview in c#

前端 未结 7 666
面向向阳花
面向向阳花 2020-11-27 20:50

I need to bind my DataTable to my DataGridView. i do this:

        DTable = new DataTable();
        SBind = new BindingSou         


        
7条回答
  •  自闭症患者
    2020-11-27 21:34

    On the DataGridView, set the DataPropertyName of the columns to your column names of your DataTable.

提交回复
热议问题