General information
Title:
How to specify right Column's type?
Hi,
I create a DataTable to save some info. One of the field in that table I want to use for saving data from Byte's Array. Here's the line where I declare a column in my DataTable:
dt = New DataTable("TestTable")
.............
dt.Columns.Add("bField", System.Type.GetType
("System.Byte"))
.............
And here lines where I face problem:
Dim arByte() As Byte
.............
tr = dt.NewRow()
tr("bField") = arByte
where arByte has some 'items'. I get error message:
Couldn't store in bField Column. Expected type is Byte.
Is there any way to handle this situation?
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only