how to bind datatable to datagridview in c#

前端 未结 7 677
面向向阳花
面向向阳花 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:35

    foreach (DictionaryEntry entry in Hashtable)
    {
        datagridviewTZ.Rows.Add(entry.Key.ToString(), entry.Value.ToString());
    }
    

提交回复
热议问题