Anyone know how to bind a SolrNet result set to a GridView control? I suspect it involves ObjectDataSource but I can't seem to get the right thing thrown together. Any help would be appreciated, I need this part done quickly.
+1
A:
Since a SolrNet result set implements IList<T>
, you can just bind to a GridView with a few <asp:BoundField>
s (one for each property you want to bind) in the aspx, and passing the result object as DataSource before calling DataBind()
Mauricio Scheffer
2010-08-05 21:28:46
Thanks, that worked. I didn't know I could just mark the result set as a DataSource.
cookiecaper
2010-08-05 21:45:14