I am using devexpress and i want to set the selected gridview column visible = false, but i want that to appear on my csv as other name but with hyperlink on it after devexpress gridviewexporter download.
here is my code
<dx:ASPxButton ID="FeedbackGridBut" ClientIDMode="Static" runat="server" OnClick="FeedbackGridBut_Click" Text="Download" Image-Url="../images/excel.png"></dx:ASPxButton>
<dx:ASPxGridViewExporter GridViewID="FeedbackGrid" ID="exportFeedbackGrid" runat="server"></dx:ASPxGridViewExporter>
<dx:ASPxGridView ID="FeedbackGrid" ClientIDMode="Static" OnCustomUnboundColumnData="FeedbackGrid_CustomUnboundColumnData" ClientInstanceName="FeedbackGrid" runat="server" AutoGenerateColumns="False" CssClass="table table-striped" SettingsPager-Mode="ShowAllRecords" SettingsSearchPanel-Visible="True" DataSourceID="FeedbackDatasource" EnableCallBacks="true" SettingsBehavior-ProcessSelectionChangedOnServer="true" EnableRowsCache="False" SettingsBehavior-AutoExpandAllGroups="true" SettingsPopup-HeaderFilter-Height="400">
<Columns>
<dx:GridViewDataTextColumn FieldName="sno" Visible="false">
</dx:GridViewDataTextColumn>
</Columns>
</dx:ASPxGridView>
vb.net
Protected Sub FeedbackGridBut_Click(sender As Object, e As EventArgs)
exportFeedbackGrid.WriteXlsToResponse()
End Sub
when i pressed the download all the column appeared except for the sno column, i dont want sno to appear on the webpage, i just want it to appear on the downloaded csv as other name as the sno value is too long and messy( for example: one of the value is asjdkgskfg-asdasd-asdasdasd) with hyperlink but it is not working.
exportFeedbackGrid.WriteXlsToResponse()? - VDWWD