Datatable reset

When pageload the first time, it looks fine. The second time, it keeps adding "- test" to column_tmp. How can I reset my_table the second time it reload?
pageload

my_table is datatable


 

For Each column As DataColumn In my_table.Columns

                Dim column_tmp As String = column.ColumnName
                Dim RequestAs String = Get_data(Session("test"), column_tmp)

                If RequestIsNot Nothing Then
                    my_table.Columns(column_tmp).ColumnName = Request_columnname
                   
                Else
                 
                    my_table.Columns(column_tmp).ColumnName = column_tmp &  " - test"
                           
                End If
Next
VBdotnet2005Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Rahul AgarwalConnect With a Mentor Team LeaderCommented:
You Session("test") Expires every page load please check this and to reset datatable use DataTable.Reset() command.
0
 
VBdotnet2005Author Commented:
Can I do this?
Dim my_table as datatable
my_table.reset()
0
All Courses

From novice to tech pro — start learning today.