I'm using the adapter with LLBLGen 2.
I have several pages that have a datagrid control that is bound to entity collections. Just above the grid there are two links, "Export to Xml", "Export to Csv".
At first, I just directly serialized the collection object to xml. The problem is the resulting xml is great for web services and the like. But this is for a end user, to get just the data represented in the grid. I would prefer to xml output look more like.....
<Users>
<User>
<Name>Levi</Name>
<UserId>superman95</UserId>
</User>
</Users>
So it is a much simplier format. I realize I could easily code this for a single grid. The problem is this, export concept is used all over the website. And I don't want to write custom handling for each one. Also, I want to only export the fields reflected in the grid. I could export the grid instead of the collection it is bound to. Does anyone have any suggestions?