I'm using DevExpress Grid in ASP. I want to pass multiple paraments in the query string of GridViewDataHyperLinkColumn. Following is my grid

<dx:ASPxGridView ID="gridHotels" runat="server" AutoGenerateColumns="False" Width="100%" DataSourceID="dsHotels" KeyFieldName="Id">
    <SettingsAdaptivity>
        <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
    </SettingsAdaptivity>
    <SettingsBehavior ConfirmDelete="True" />
    <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
    <Columns>
        <dx:GridViewCommandColumn ShowDeleteButton="True" ShowEditButton="True" ShowNewButtonInHeader="True" VisibleIndex="0" Width="20%">
        </dx:GridViewCommandColumn>
        <dx:GridViewDataTextColumn Caption="Id" FieldName="Id" Visible="False" VisibleIndex="1">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="EventId" FieldName="EventId" VisibleIndex="2">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataDateColumn Caption="Start Date" FieldName="StartDate" VisibleIndex="3">
            <PropertiesDateEdit DisplayFormatString="dd-MM-yyyy" EditFormat="Custom" EditFormatString="dd-MM-yyyy">
            </PropertiesDateEdit>
        </dx:GridViewDataDateColumn>
        <dx:GridViewDataDateColumn Caption="End Date" FieldName="EndDate" VisibleIndex="4">
            <PropertiesDateEdit DisplayFormatString="dd-MM-yyyy" EditFormat="Custom" EditFormatString="dd-MM-yyyy">
            </PropertiesDateEdit>
        </dx:GridViewDataDateColumn>
        <dx:GridViewDataHyperLinkColumn Caption="Events" FieldName="Id" VisibleIndex="8">
            <PropertiesHyperLinkEdit NavigateUrlFormatString="EventDetails.aspx?id={0}&startdate={1}&enddate={2}&eventid="+<%= EventId %> TextField="TotalEvents">
            </PropertiesHyperLinkEdit>
        </dx:GridViewDataHyperLinkColumn>
    </Columns>
</dx:ASPxGridView>

How can I pass the Id, StartDate, EndDate, EventId column in the parameters of URL? I have tried to load it using <%= EventId %> but it does not work.

Related posts

Recent Viewed