HyperLinkColumn

B

barranr

Hi, is it possible to have 2 hyperlinks in a single HyperLinkColumn,
one to edit and one to run a filter

thanks
 
S

Scott M.

Yes. First create the hyperlink column and then convert that column to a
template column. You can then right click your datagrid and edit that
column. You would then be able to put another link into the column.
 
R

rod barrand

Thanks for the reply, i'm building the datagrid in codebehind so there
is no interface to set properties
How do i add an ItemTemplate to a template col and then insert the
hyperlinks

what i did for just one hyperlink was

HyperLinkColumn EditLinkColumn = new HyperLinkColumn();
EditLinkColumn = JMBuildHyperLink("LIST_ACTION", strActionForRow,
editLink + "pKey={0}", "UNN_ROWID");

UnionGrid.Columns.AddAt(0, EditLinkColumn);

Would be simple if i could just drop a grid on the page and convert it
to a template col, but can't do that :(

Rod
 
S

Scott M.

Hmmm, that's a tough one. I've never done this in code before, only with
the visual property builder dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top