I have a RadGrid with a gridhyperlinkcolumn. I want to set the url differently depending on a datakey value. How can i do this? here is my code snippet
<telerik:RadGrid ID="RadGrid1" runat="server" datakeynames="applicationid" allowsorting="true" DataSourceID="LOISubmitted" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both">
<GroupingSettings CollapseAllTooltip="Collapse all groups" />
<ClientSettings>
<Selecting AllowRowSelect="True" UseClientSelectColumnOnly="true" />
</ClientSettings>
<MasterTableView DataSourceID="LOISubmitted" DataKeyNames="applicationid" AllowMultiColumnSorting="true" CommandItemDisplay="top" Font-Names="Trebuchet MS">
<CommandItemSettings ShowExportToExcelButton="true" showaddnewrecordbutton="false"/>
<Columns>
<telerik:GridHyperLinkColumn DataNavigateUrlFields="applicationid, applicationtype" itemstyle-width="40%" DataTextField="fiscalorgname" HeaderText="Fiscal Organization" SortExpression="fiscalorgname" UniqueName="fiscalorgname" ></telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn DataField="behalfof" HeaderText="On Behalf of" SortExpression="behalfof" UniqueName="behalfof" FilterControlAltText="Filter behalfof column" ItemStyle-width="30%"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="applicationperiod" HeaderText="Application Period" SortExpression="applicationperiodid"> </telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>