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" <(E-Mail Removed)> wrote in message
news:OG$(E-Mail Removed)...
> Hi,
>
> Can Someone tell me how to add a DataTable to ViewState.
>
> Thanks
> Kiran
>
>
|