Gv3=gv1+gv2(not binding why?)

Posted by Oswaldlily under ASP.NET on 6/5/2012 | Points: 10 | Views : 1237 | Status : [Member] | Replies : 0
DataTable dtble=new DataTable();
dtble.Columns.Add(new DataColumn("Column1",typeof(string)));
dtble.Columns.Add(new DataColumn("Column2",typeof(string)));

DataRow drw=dtble.NewRow();
drw["Column1"]=Session["Gridview"];
drw["Column2"]=_captureTaxMapper.FetchGridHeaderSP(No);
dtble.Rows.Add(drw);
gv1.DataSource = dtble;
gv1.DataBind();


Session["Gridivew"] =>already has griview of 5 columns in previous page.
_captureTaxMapper.FetchGridHeaderSP(No);=>gives column of 10 columns from table.

In source page i have written as follows
<asp:TemplateField HeaderText="PartNo">
<ItemTemplate>
<asp:Label ID="lblPartNo" runat="server" Text='<%#Eval("D_PartNo") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="No">
<ItemTemplate>
<asp:Label ID="lblNo" runat="server" Text='<%#Eval("D_DOC_No") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>




Responses

(No response found.)

Login to post response