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
765
Creating a hyperlink to a grid
posted

Hi

I have a section where I have added a page and then added a grid.  I want on that page to have a hyperlink to the grid so that when user presses that hyperlink the document will scroll to the start of the grid. Is there any way I can do it . Thanks.

page = section.AddPage()

grid = section.AddGrid()

p. Add  A Hyperlink to grid.

Thanks.

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

     You might be able to use the AddTarget method on an IText element, then use the AddHyperlink method to link to that target.  There is a sample of this in the Documents Samples Gallery that ships with the SDK of NetAdvantage, but the gist of it is:


    text.AddContent("Next Link (Link2)", new Infragistics.Documents.Report.Text.Hyperlink("#Link2"));

    text = section.AddText();
    text.AddTarget("Link2");
    text.AddContent("This is the target of the link");

    -Matt

Children