I have:
on some of my controls in a datagrid.Code:Visible='<%# DataBinder.Eval(Container.DataItem, "wipeInitiated") %>'
However, I want it to be visible on NOT wipeInitaited...how do i do this?
Woof
Printable View
I have:
on some of my controls in a datagrid.Code:Visible='<%# DataBinder.Eval(Container.DataItem, "wipeInitiated") %>'
However, I want it to be visible on NOT wipeInitaited...how do i do this?
Woof
Could you write a function that accepted "wipeInitiated" as a parameter and returned the opposite of it?
and then haveCode:private bool Reverse(bool dbValue)
{
return(!dbValue);
}
I'll be honest and admit i'm guessing.Code:Visible='<%# DataBinder.Eval(Container.DataItem, Reverse("wipeInitiated")) %>
mmmm I guess the Function should be on the outside of the databind.
Code:Visible='<%# Reverse(DataBinder.Eval(Container.DataItem, "wipeInitiated")) %>
I usually select the opposite directly from the database.
I know that doesn't exactly answer your question, but I thought I would throw it out there.