Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Rahul Agarwal
Rahul Agarwal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBdotnet2005

ASKER

Can I do this?
Dim my_table as datatable
my_table.reset()