Assign dataview value to view state

Total Post:102

Points:714

 3478  View(s)
Ratings:
Rate this:

Hi Everyone!

 

Can anyone tell me how to assign dataview value to view state in ASP.NET C#?

Thanks

  1. Re: Assign dataview value to view state

    Hi Mark Devid!

    You can try this line of code

    datatable dt=new datatable();
    DataView dv = new DataView(dt);
    dv.RowFilter = Condition;
     
    ViewState[ViewStateName] = dv;

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.