function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Fabrice76Fabrice76 

Is there a (simply) way to get a c# datasource from a queryresult ?

Hi,
I've already done it with some "named" sobjects as account or contact, and i've got each time a sobject list associated to display it.
Now, i'd want to display in a grid the SOQL result to edit any (custom) sobjects list. So, i'd like to write a soql query and display (and edit) it in a SINGLE grid.

I thought to parse the fields from the SOQL text, play the query and create a datatable (or an object list) from the queryresult, but is it the right way ?
How can i do this ?
Has anybody done this job or something similar ?

RamuRamu (Salesforce Developers) 
This might help http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2013/12/handing-salesforce-soql-relationship.html