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
445
HyperLinkColumn ContentBinding at runtime
posted

How to assign ContentBinding property of HyperlinkColumn(XamWebGrid) at runtime? I did this at design time but not getting how to do it at runtime?

-Pankaj

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi Pankaj, 

    I assume you're talking about the code behind?

    You just need to create a Binding object. 

    HyperlinkColumn col = new HyperlinkColumn();

    col.ContentBinding = new Binding("propertyName"){ Source = yourSource}

    -SteveZ

Children