G
Guest
Hello,
I create in datagrid <ItemTemplate><%#DataBinder.Eval(Container.DataItem,
"ID_0061_PREDECESSOR")%></ItemTemplate>. This is written in HTML code. But
now is shown Guid 0000-00000-0000.... in datagrid. But I need create in
ItemTemplate "IF" construction like this:
If DataBinder.Eval(Container.DataItem, "ID_0061_PREDECESSOR")!=Guid.Empty
DataBinder.Eval(Container.DataItem, "ID_0061_PREDECESSOR")
So if ID_0061_PREDECESSOR isn't empty, then write in page the value of
ID_0061_PREDECESSOR.
How can I create this construction?
Thanks Lubos
I create in datagrid <ItemTemplate><%#DataBinder.Eval(Container.DataItem,
"ID_0061_PREDECESSOR")%></ItemTemplate>. This is written in HTML code. But
now is shown Guid 0000-00000-0000.... in datagrid. But I need create in
ItemTemplate "IF" construction like this:
If DataBinder.Eval(Container.DataItem, "ID_0061_PREDECESSOR")!=Guid.Empty
DataBinder.Eval(Container.DataItem, "ID_0061_PREDECESSOR")
So if ID_0061_PREDECESSOR isn't empty, then write in page the value of
ID_0061_PREDECESSOR.
How can I create this construction?
Thanks Lubos