Okay, here another problem I'm having difficulty solving...
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:
Works great, but I only want to display the button if the "completed_date " label is blank (which, BTW, is stored as a string, not datetime). How do I do that?
Robert
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:
Code:
<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
Comment