Two Gridview inside Panel - Not Properly Binded
<p>I am working in C#.Net. I am having a gridview. In that there is a EDIT button. If i click the EDIT button, i am opening a Model PopUp extender Panel. In that i am binding two gridviews. </p>

<p>My problem is, The first gridview inside panel is binding properly, but the second gridview is not binding. Even though the dataset is having the values, the EMPTYDATA TEXT = "No Records Found" is displayed.</p>

<p>I am binding these two gridviews in Row Command event of Main Gridview.</p>

<p>This is the code for Second gridview binding.</p>

<pre><code>DataTable dt = new DataTable();
            dt.Columns.Add(new DataColumn("StatusUpdateID"));
            dt.Columns.Add(new DataColumn("StatusUpdate"));
            dt.Columns.Add(new DataColumn("CreatedBy"));
            dt.Columns.Add(new DataColumn("CreatedDateTime"));
            DataRow r = dt.NewRow();
            r["StatusUpdateID"] = "1";
            r["StatusUpdate"] = "2";
            r["CreatedBy"] = "3";
            r["CreatedDateTime"] = "4";

            gvStatus.DataSource = dt;
            gvStatus.DataBind();
</code></pre>
