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
1253
XamWebGrid with HyperLink button
posted

Hi,

I have a bound grid where I create the HyperlinkColumn dynamically.  I have 2 questions:

1/ how can I create a event handler?

2/ how can I display the value of a hidden column?

Thanks!

  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    So, to change the display to that of a hidden column, you can use the ContentBinding property on the HyperlinkColumn and bind to any property on your data object. 

    As for the event handler, we don't expose the events of the display control for specific column types. The main purpose of this column was to simplify binding to a Uri property.  If you're trying to handle events such as the click event, for the purpose of custom clicking, then i'd recommend you use a TemplateColumn and put a HyperlinkButton in the ItemTemplate. 

    Hope this helps, 

    -SteveZ