Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Need Ability to Selectively show or hide HyperLink for different rows in WebDataGrid
posted

I have a working WebDataGrid with <Columns> and then various <ig:BoundDataField>.

Within these, I have added

<ig:TemplateDataField Width="100px" Key="NavUrl" CssClass="igwdg_center">
<ItemTemplate>
<asp:HyperLink ID="Link1" runat="server" NavigateUrl='<%# "javascript:openWinNavigateUrl(" + DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).Item, "Row.Index") + ")" %>'>
Details
</asp:HyperLink>
</ItemTemplate>
<Header Text="Checking Details" CssClass="igwdg_center" />
</ig:TemplateDataField>

which calls a Javascript function to open another page.

How would I restrict this HyperLink from appearing when some of the data in my DataBound data is not available?  In other words, I only want the Hyperlink with "Details" as the text to only appear if a certain field is populated within the underlying collection of data.  I don't want the hyperlink to appear in every row of data.

Thanks

Parents Reply Children
No Data