I want to create a datatable to hold test results from a testing program and I'm adding rows like this:
Dim NewRow As DataRow
NewRow = tblUserAnswers.Rows.Add
NewRow.Item(0) = m_intUserId
etc
which I'm not exactly sure is going to work anyway but how do I set the number of columns and their datatypes to match the Results table in the actual database so that I can send it to the database later (btw is there even a way to do that?) and it won't give me a bunch of datatype mismatch errors or number of columns errors or something. Or do I even have to do that at all?



Reply With Quote
