I have a datasource that calls a stored procedure, that can return any number of columns from two up. I have been able to successfully call the SP and get the records returned, but I cannot figure out how to declare the fields dynamically so that the list grid will fill with data.
For testing purposes, I tried the following:
The above is a setup that I can use to test, because I can query that exact information. The listgrid recieves its fields, and displays the headers and what look like rows, but not values in the cells.
Again, the above is only a test, and I need to figure out how to dynamically setup the fields based on the results returned!
For testing purposes, I tried the following:
Code:
ListGridField lgf1 = new ListGridField("dateCollected");
ListGridField lgf2 = new ListGridField("26121:1");
detailGrid.setFields(lgf1, lgf2);Again, the above is only a test, and I need to figure out how to dynamically setup the fields based on the results returned!