Hyperlink parameters & DataGrids

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top