Intersoft Support Center

Export Text with WebValueList

WebValueList is used to translate value to text in a WebGridColumn object. If you use WebValueList in one of the columns and export the data, the value of the column (not the text) will be exported.

To export text when WebValueList is used

  1. Drag WebGrid to the WebForm.
  2. Go to WebGrid properties and expand server side event.
  3. Attach the WebGrid Export event into the WebGrid.
  4. Specify the EnableValueList property to True.

  5. C# Copy ImageCopy Code
    private void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
    {
      e.ReportInfo.EnableValueList = true;
    }
    

  6. Run the project.
Previous Next