Intersoft WebGrid Documentation
How-to: Export text when WebValueList is used
See Also Send comments on this topic.

Glossary Item Box

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.

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

  5. Run the project.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.