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.
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
Hey Matt
Cool , works perfectly
Thanks very much.
BTW why doesnt the grid itself have an AddTarget , It will be more intuitive .
Thanks
My guess is that the grid itself is not responsible for showing text, it is only a container for an IText (or other) element, so it would be somewhat arbitrary to have a target to the grid.