ASSIGN DATAVIEW VALUE TO VIEW STATE

Mark Devid

Total Post:102

Points:714
Posted by  Mark Devid
 2979  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. AVADHESH PATEL

    Post:604

    Points:4228
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!