Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
<asp:GridView ID="GridViewYardSales" runat="server" CssClass="yui-datatable-theme" AutoGenerateColumns="false" DataSourceID="YardSaleDataSource" AllowSorting="true" OnRowCommand="GridViewYardSales_RowCommand" OnRowCreated="GridViewYardSales_RowCreated" DataKeyNames="ItemId"> <RowStyle CssClass="data-row" /> <AlternatingRowStyle CssClass="alt-data-row" /> <Columns> <asp:BoundField DataField="ItemId" HeaderText="ItemId" ReadOnly="True" SortExpression="ItemId" Visible="false"></asp:BoundField> <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px"> <ItemTemplate> <asp:LinkButton ID="LinkButtonViewOnMap" runat="server" OnClientClick=<%# String.Format("javascript:ViewOnMapById('{0}');", Eval("ItemId")) %>> Map</asp:LinkButton><br /> <asp:LinkButton ID="LinkButtonItinerary" runat="server" CommandName="Command_Itinerary" CommandArgument='<%# Eval("ItemId") %>'>Itinerary </asp:LinkButton><br /> <asp:LinkButton ID="LinkButtonViewDetail" runat="server" CommandName="Command_ViewItemDetail" CommandArgument='<%# Eval("ItemId") %>'>Detail </asp:LinkButton> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Title"> <ItemTemplate> <%# Eval("Title") %><br /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Date"> <ItemTemplate> <%# Eval("Time") %> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
Remember Me