Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

View Source not showing gridview control, but gridview is displaying in browser with data perfectly.

How to find gridview in viewsource.
Posted
Comments
deepankarbhatnagar 23-Dec-15 5:02am    
PLease show your code which is not working
Baroor 23-Dec-15 6:21am    
<asp:GridView ID="GvAllInvoice" runat="server" Width="100%" PageSize="10" AutoGenerateColumns="False"
ShowFooter="True" AllowSorting="true" OnRowDataBound="GvAllInvoice_RowDataBound" OnPageIndexChanging="GvAllInvoice_PageIndexChanging" OnSorting="GvAllInvoice_Sorting">
<HeaderStyle BackColor="#4E4402" ForeColor="#F7F7F7" HorizontalAlign="Center"></HeaderStyle>
<rowstyle cssclass="GridItem">
<alternatingrowstyle cssclass="GridAltItem">
<footerstyle forecolor="Black" backcolor="#CCCCCC" height="20px">
<columns>
<asp:TemplateField Visible="False" HeaderText="InvID" ItemStyle-Height="20px">
<HeaderStyle Width="0px"></HeaderStyle>
<itemtemplate>
<asp:Label runat="server" Width="0px" Text='<%# DataBinder.Eval(Container, "DataItem.Invoice_ID") %>'
ID="lblinvid">


<itemstyle height="20px">

<asp:TemplateField HeaderText="Invoice No." FooterText="Total" ItemStyle-Height="20px"
SortExpression="invoiceno">
<HeaderStyle Font-Bold="True" ForeColor="White" Width="30%"></HeaderStyle>
<HeaderTemplate>
<asp:Label ID="lblheaderText" runat="server" Text="Invoice NO." Font-Bold="True">
</HeaderTemplate>
<itemtemplate>
<asp:CheckBox ID="chkinv" runat="server">
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.invoiceno") %>'
ID="lblInvNo">

<input type="hidden" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.TDSRATE") %>'
id="hdTds" />

<itemstyle height="20px">
<footerstyle height="20px">

<asp:TemplateField HeaderText="Balance" ItemStyle-Height="20px" SortExpression="BalanceInvoiceAmt">
<HeaderStyle Font-Bold="True" ForeColor="White" Width="20%"></HeaderStyle>
<itemtemplate>

1 solution

After the page is rendered, you can't view the source code for gridview, it has already been converted into plain HTML+Javascript+CSS.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900