As I mentioned in a recent question on how to show strings with carriage returns in a gridview, I also wondered about how to format this particular string differently, on the fly.
The string coming back from the database has carriage returns. It is then directly bound to a GridViewColumn like this:
<GridViewColumn Width="365" Header="Desc" DisplayMemberBinding="{Binding desc}" />
Say I want to remove those carriage returns, using a String.Replace, but without altering the DataTable the gridview is bound to.
I used to do something similar in ASP.net with the Repeater.OnItemDataBound method, applying formatting or the like.