This project is read-only.

Data Types

Apr 12, 2009 at 12:34 AM
It appears that the data being returned is being returned as a string. When I edit the xslt in SharePoint Designer (SPD), the fields aren't recognised as their appropriate types. Dates are the most obvious. Other than that, excellent work.
Apr 13, 2009 at 10:13 PM
That's correct. Data is being returned as simple XML with no reference to type.  
Grid WebPart can be configured with column types and (optional) format to display various data types.
With Content Data View webpart (because it inherits from standard DataForm webpart) you have to manually format each column in XSLT. This process is the same when using SharePoint DataForm Webpart  - it will format date for example, using "ddwrt:FormatDate()" function.