如何在asp.net的gridview中标记标记为“已确认”的模板字段?

时间:2019-12-19 17:48:17

标签: c# asp.net

// html code  
<asp:GridView ID="DispatchDataGV" runat="server" AutoGenerateColumns="false" align="center" CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>
                <Columns>
                    <asp:BoundField DataField="RESOURCE_ID" HeaderText="Resource" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="PARTICIPANT_NAME" HeaderText="Participant" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="DATE_SENT" HeaderText="Date Sent" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="TYPE" HeaderText="Type" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="AMOUNT" HeaderText="Megawatts" DataFormatString="{0:00.00}" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="STATE" HeaderText="State" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="ACTIVE" HeaderText="Active" ItemStyle-HorizontalAlign="Center" />
                    <asp:TemplateField HeaderText="Acknowlegdement" ItemStyle-HorizontalAlign="Center" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="acknowledgestatus" runat="server"/>
                            <asp:HiddenField ID="acknowledgement" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
              

我希望使用“确认”模板字段来跟踪用户在GV下方的按钮后被确认的记录。任何有关我应该如何开始的帮助?

0 个答案:

没有答案