Friday, August 23, 2013

how to create an empty data table in asp.net

to create an empty data table

Private Function CreateEmptyDT() As DataTable
        Dim DT As New DataTable()
        DT.Columns.Add("RowId")
        DT.Columns.Add("CourseDt")
        DT.Columns.Add("CourseTime")
        DT.Columns.Add("CreditHours")
        Return DT
    End Function

No comments:

Post a Comment