Hyperlink parameters & DataGrids

G

Guest

I need to pass an id from one record to a different page. The ID is in a
Datagrid and I want to pass the record to another page. Example:
http://www.domain.com?RecordID=2
the parameter I want to pass is RecordID with a value 2.

How would I send the RecordID from a datagrid?
 
G

Guest

The simplest solution would be to use a Hyperlink column, right-click the
datagrid control, select "Property Builder" and add a Hyperlink column to the
grid. Then set the "URL Field" to the RecordID and the "URL Format string"
to "http://www.domain.com?RecordID={0}". The datagrid will automatically
replace the {0} with the RecordID from the current row of the datagrid
control.

HTH,
Jorge
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top