Exporting to XML

3 replies. Last post: October 5, 2009 12:08 PM by John Bonin
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
John BoninMember

Hi,

 

  I am exporting my grid to an XML file and was wondering if there is a way to change the name of the fields that get exported.  For example, on the Grid I have a column defined as:

<ISWebGrid:WebGridColumn Caption="State" DataMember="CARRIER_STATE" Name="CarrierState" Width="50px"> </ISWebGrid:WebGridColumn>

 

When it is exported to XML the Field name is CARRIER_STATE, I would like it to use the Caption name of "State" instead.  Is this possible?

 

Also I would like to change a value of the field when it gets exported.  For example a field in the database has the  value of -1 but when I display it in the Grid, I change it to "**", but the export uses -1 but I want to use "**".  Is this possible? 

Thanks

John

All times are GMT -5. The time now is 11:47 PM.
Previous Next