Click here to Skip to main content
15,893,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dears,
I have a grid with the following columns, i'm using devexpress tools

<dx:gridviewdatatextcolumn fieldname="TerminalRecordID" visibleindex="0" xmlns:dx="#unknown">
XML
<dx:GridViewDataHyperLinkColumn FieldName="TerminalCurrentStatus" VisibleIndex="6">
                <PropertiesHyperLinkEdit  TextField="TerminalRecordID" NavigateUrlFormatString="~/MasterPages/PeripheralsStatus.aspx?RecID={}"></PropertiesHyperLinkEdit>
              </dx:GridViewDataHyperLinkColumn>


how can i set in the navigateUrlFormatString RecID to be equal to TerminalRecordIDValue?

Regards
Posted

1 solution

Try this
C#
<dx:gridviewdatahyperlinkcolumn textfield="TerminalCurrentStatus" fieldname="TerminalRecordID" visibleindex="6">
                <propertieshyperlinkedit textfield="TerminalRecordID">
NavigateUrlFields="TerminalRecordID" NavigateUrlFormatString="~/MasterPages/PeripheralsStatus.aspx?RecID={0}" ></propertieshyperlinkedit>
              </dx:gridviewdatahyperlinkcolumn>
 
Share this answer
 
v3
Comments
Sandra Ha 14-Aug-12 5:19am    
no this one doesn't work at all
pradiprenushe 14-Aug-12 5:27am    
It is not setting value or not navigating?
Sandra Ha 14-Aug-12 5:35am    
the value in the RecID is the terminalCurrentStatus value not the TerminalRecordID as desired.
pradiprenushe 14-Aug-12 5:50am    
check property of gridviewdatahyperlinkcolumn for url format & url field
pradiprenushe 14-Aug-12 6:05am    
See my updated answer if dont get it refer following link

http://www.devexpress.com/Support/Center/p/E993.aspx
http://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxGridViewGridViewDataHyperLinkColumntopic

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900