Add DataTable to ViewState

  • Thread starter Thread starter Kiran
  • Start date Start date
I am surprised Kevin didn't answer this question.

DataTable table = new DataTable( "myTable" );

ViewState[table.ID] = table;

Are you having a specific problem storing it? One word of caution, if you
are storing a large amount of rows and columns, ViewState might not be the
best storage medium for you. The ViewState quickly becomes prohibitively
large.

bill
 
Back
Top