S
Sam
Hi,
I have the following code :
Dim Selectcol As New DataColumn
Dim Updatecol As New DataColumn
Dim Insertcol As New DataColumn
Try
'my own class to fill the dataset (it works)
m_dsFields = da.GetDataset
'add boolean column Select
Selectcol.ColumnName = "Select"
Selectcol.DataType = System.Type.GetType("System.Boolean")
m_dsFields.Tables(0).Columns.Add(Selectcol)
For iCntr As Integer = 0 To m_dsFields.Tables(0).Rows.Count - 1
m_dsFields.Tables(0).Rows(iCntr).Item("Select").value = True
Next
.....
I've got the followin error when the line .....value = True is called:
Field 'value' of type 'DBNull' is 'ReadOnly'."
What's wrong with my code ?
Thx
I have the following code :
Dim Selectcol As New DataColumn
Dim Updatecol As New DataColumn
Dim Insertcol As New DataColumn
Try
'my own class to fill the dataset (it works)
m_dsFields = da.GetDataset
'add boolean column Select
Selectcol.ColumnName = "Select"
Selectcol.DataType = System.Type.GetType("System.Boolean")
m_dsFields.Tables(0).Columns.Add(Selectcol)
For iCntr As Integer = 0 To m_dsFields.Tables(0).Rows.Count - 1
m_dsFields.Tables(0).Rows(iCntr).Item("Select").value = True
Next
.....
I've got the followin error when the line .....value = True is called:
Field 'value' of type 'DBNull' is 'ReadOnly'."
What's wrong with my code ?
Thx