Toggle Datagrid Text Property Based on Cell Value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MrMike

    #1

    Toggle Datagrid Text Property Based on Cell Value

    I have an asp.net datagrid hyperlink column that displays the word "Picture".
    Is it possible to NOT show the word "Picture" if the data in the column is
    NULL? To read the column data I'm currently using:
    <%# DataBinder.Eval (Container, "DataItem.Image FilePath") %>

    How could I implement logic to check if the value is NULL, and if it is, not
    dispaly the text?
    Thanks.
Working...