Dataview does not contains record in other event. 
<p>I have defined dataview globally at Global declaration section. Now i am assigned the value of another dataview to that global defined dataview in one method. Now i am using that global defined Dataview into another method. But i am not getting the records that are defines in first method. I need it. How to do that?</p>

<pre><code>public partial class Properties : System.Web.UI.Page
{
    //Declaration of Dataview :
     DataView dtViewLink = new DataView();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    // define in this method 
    protected void myMethod(object sender, EventArgs e)
    {
        dtViewLink = null;
        dtViewLink = dvEmployee;       //dvEmployee is other Dataview that has two records.
    }
    // i am using it here
   protected void ddlSortSortBy_SelectedIndexChanged(object sender, EventArgs e)
   {
       if (dtViewLink.Count &gt; 0)
       {
                   dtViewLink.Sort = "" + strName + " Asc";

       }
   }
}
</code></pre>

<p>That example will clear what i have to do</p>
