This is the code that works:
VB.NET Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim myEmpDS As New EMPLOYEE_COLLECTION.EMPLOYEE_RECORDDataTable Dim myempDsRow As EMPLOYEE_COLLECTION.EMPLOYEE_RECORDRow 'If I wish to loop, this is the place to do it. myempDsRow = myEmpDS.NewRow() myempDsRow.EMPLOYEE_NO = "ABHIJIT" myempDsRow.FIRSTNAME = "ABHIJIT" myempDsRow.LASTNAME = "ABHIJIT" myempDsRow.NTID = "ABHIJIT" myEmpDS.AddEMPLOYEE_RECORDRow(myempDsRow) myEmpDS.WriteXml("hello.xml") Catch ex As Exception MsgBox(ex.InnerException) End Try End Sub




Reply With Quote
