Hi All,
I am getting an error when saving my data to a datatable
"Input string was not in a correct format.Couldn't store <ClientID> in fnClientID Column. Expected type is Int32."
I was able to get past the errors by setting the data types to string and discovered the Heading was being saved to my datatable. How do I avoid this?
Code:Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
intGrpSize = n
Create_ClientTable()
For Each cell As DataGridViewCell In dgvClients.SelectedCells
MessageBox.Show(cell.Value.ToString)
Next
'dgvClients.DataSource = ClientTable
For Each row As DataGridViewRow In Me.dgvClients.SelectedRows()
'Clientid is int32, clientname is string & fnprgcode id int32
_ClientTable.Rows.Add("ClientID", "ClientName", "fnPrgCode")
Next
frmChildWindow.CreateSession()
'Dim frm As New frmCaseNts
'frm.ShowDialog()
Me.Close()
End Sub
