M
Manuel
I have the following DataGrid:
<asp:datagrid id="grdPackages" runat="server" AutoGenerateColumns="False"
AllowSorting="True">
<Columns>
<asp:BoundColumn DataField="ShipDate" SortExpression="ShipDate"
HeaderText="Ship Date"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Confirm">
<ItemTemplate>
<asp:Button id="btnConfirm" runat="server" Text="Confirm"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
How do I add functionality to the btnConfirm? I want to calculate another
value based on the ShipDate [and store it in a database], how do I get the
date of the row?
<asp:datagrid id="grdPackages" runat="server" AutoGenerateColumns="False"
AllowSorting="True">
<Columns>
<asp:BoundColumn DataField="ShipDate" SortExpression="ShipDate"
HeaderText="Ship Date"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Confirm">
<ItemTemplate>
<asp:Button id="btnConfirm" runat="server" Text="Confirm"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
How do I add functionality to the btnConfirm? I want to calculate another
value based on the ShipDate [and store it in a database], how do I get the
date of the row?