vb Code:
Dim table As DataTable = DS.Tables(0) Dim TableRow As DataRow = table.Rows(table.Rows.Count - 1) If DS.Tables(0).Rows.Count > 0 Then NewTableName = DS.Tables(0).Rows(TableRow).Item("CourseID").ToString() End If
Can't Convert Integer into DataRow
How do I make TableRow a Integer while keeping the table.Rows(table.Rows.Count -1) ? I'm trying to get the last index then set it to add to that on a NEW TABLE




Reply With Quote