C
Craig
How do I reference the dataset row number for the data in the datagrid and
not the datagrid row itself when calling a function from the HTML?
When I am calling a function from a datagrid column as shown below I can use
'Container.ItemIndex' which refers to datagrid row number but I want the row
number of the dataset. If you implement paging then the row number of the
first row is the same no matter what page you are on which is not what I
want.
In some events I believe it is e.item.itemindex that refers to the row
number of the dataset but I need to pass it from the HTML.
<asp:TemplateColumn HeaderText="FYC Potential">
<ItemTemplate>
<asp:Label id="Label2" runat="server" Text='<%#
fDetermineFYC(Container.ItemIndex) %>'>lblFYCPotential</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
not the datagrid row itself when calling a function from the HTML?
When I am calling a function from a datagrid column as shown below I can use
'Container.ItemIndex' which refers to datagrid row number but I want the row
number of the dataset. If you implement paging then the row number of the
first row is the same no matter what page you are on which is not what I
want.
In some events I believe it is e.item.itemindex that refers to the row
number of the dataset but I need to pass it from the HTML.
<asp:TemplateColumn HeaderText="FYC Potential">
<ItemTemplate>
<asp:Label id="Label2" runat="server" Text='<%#
fDetermineFYC(Container.ItemIndex) %>'>lblFYCPotential</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>