解决方案 »

  1.   

            Dim table1 As New DataTable
            table1.Columns.Add("姓名")
            table1.Columns.Add("语文")
            table1.Columns.Add("数学")
            table1.Columns.Add("英语")
            table1.Columns.Add("综合")
            table1.Columns.Add("准考证号")
            Dim row1 As DataRow
            row1 = table1.NewRow
            row1("姓名") = "Tom"
            row1("语文") = 121
            row1("数学") = 145
            row1("英语") = 134
            row1("综合") = 127
            row1("准考证号") = "032158"
            table1.Rows.Add(row1)
            DataGridView1.DataSource = table1
      

  2.   

    已经解决,是因为没有绑定dataset,谢谢各位!