I am trying to create a Winform-based Listview that uses the Client Object Model for Sharepoint 2010 to display a folder's contents similar to how a user would see it in Sharepoint. My first problem was accessing the view (which I was able with help to do),
however, I found that the names of the columns in the view did not match the object property names for the objects.
I am wondering if there is a "proper" way to do implement this. I am thinking I should be using a CAML query to pull back the necessary fields in the documents list, something like:
My to-do list for this process is:
1: Determine the View I should be using -- is there a CAML query for that?
2: pull back the view columns w/ proper object property names -- I have the view, but the view returns improper object property names
3: Query SP (given view columns) for all docs under a certain folder
... my fields from the view query ...<br/>
<FieldRef Name='FileDirRef'/><Value Type='Text'>http://myserver/documents/somefolder</Value><br/>
4: Cycle through each of the Results of step 3, transferring the info into the listview.
View Complete Post