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
"Kiran" <Ki***@nospam.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi,
Can Someone tell me how to add a DataTable to ViewState.
Thanks
Kiran