sanders720
Programmer
Unhandled exception of type System.NullReferenceException occurred HERE: .DataType = System.Type.GetType
works great for second column in datatable aCol10. Actually, this column was once first, and I added one. I'm just slightly confused.
Any thoughts are apprectated!
Thanks
' Part Qty
Dim aCol0 As DataColumn
With aCol0
.DataType = System.Type.GetType("System.Integer")
.ColumnName = "QTY"
.Caption = "Quantity"
End With
' Part No.
Dim aCol10 As New DataColumn
With aCol10
.DataType = System.Type.GetType("System.String")
.ColumnName = "PN"
.Caption = "Part No."
End With
works great for second column in datatable aCol10. Actually, this column was once first, and I added one. I'm just slightly confused.
Any thoughts are apprectated!
Thanks
' Part Qty
Dim aCol0 As DataColumn
With aCol0
.DataType = System.Type.GetType("System.Integer")
.ColumnName = "QTY"
.Caption = "Quantity"
End With
' Part No.
Dim aCol10 As New DataColumn
With aCol10
.DataType = System.Type.GetType("System.String")
.ColumnName = "PN"
.Caption = "Part No."
End With