Kumaran P

Kumaran P

  • NA
  • 90
  • 3.3k

Gridview prblom

Apr 3 2017 12:10 PM
<asp:GridView ID="GridView1" AutoGenerateColumns="False" RowHeaderColumn="false" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
<AlternatingRowStyle BackColor="#DCDCDC" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<tr class="gvHeader">
<th></th>
<th colspan="2">2014</th>
<th colspan="2">2015</th>
</tr>
<tr class="gvHeader">
<th>Description</th>
<th>Qty</th>
<th>Amount</th>
<th>Qty</th>
<th>Amount</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<td align="right"><asp:Label ID="LblQty2014" runat="server" Text='<%#Eval("Qty2014", "{0:N0}") %>' /></td>
<td align="right"><asp:Label ID="LblAmount2014" runat="server" Text='<%#Eval("Amount2014", "{0:N0}") %>' /></td>
<td align="right"><asp:Label ID="LblQty2015" runat="server" Text='<%#Eval("Qty2015", "{0:N0}") %>' /></td>
<td align="right"><asp:Label ID="LblAmount2015" runat="server" Text='<%#Eval("Amount2015", "{0:N0}") %>' /></td>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
 
 
am wirting above code but grid view shwoing error data bound move one row some one help
 

Answers (2)