I've got a cell in my GridView that I need to have a control optionally displayed. Specifically, I have a cell with a bound variable of type Label. In that same cell, I also want to display a button (unbound). I can do that with something like this:
Expand|Select|Wrap|Line Numbers
- <ItemTemplate>
- <asp:Label ID="completed_date" runat="server" Text='<%# Bind("completed_date") %>'></asp:Label><br>
- <asp:Button ID="MarkAsCompletedButton" runat="server" CommandName="MarkAsCompleted" Text="Mark As Completed" />
- </ItemTemplate>
Robert