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
- Drag WebGrid to the WebForm.
- Go to WebGrid properties and expand server side event.
- Attach the WebGrid Export event into the WebGrid.
- Specify the EnableValueList property to True.
private void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
{
e.ReportInfo.EnableValueList = true;
}
|
- Run the project.