Hi,
Is it possible to get the results of HQL queries in DataSet?.I want to display results of HQL query to GridView. As HQL results are returned in the form of IList/List collections i am unable to Bind to Grid View.
pls let me know,
1. How to bind IList collections to Grid view?
eg:
IList results=Query.L ist()
GridView1.DataS ource=results;
GridView.DataBi nd();
if i run the above code it will display the result in Grid only if i have the result returned as only 1 row.If more than one row is returned as a result of executing HQL query, it returns the properties of IList in the GridView..
any solution for this problem??
(or)
2 . Is it possible to return the result of HQL query directly in the Form of DataSet?
thanks in Advance,
Is it possible to get the results of HQL queries in DataSet?.I want to display results of HQL query to GridView. As HQL results are returned in the form of IList/List collections i am unable to Bind to Grid View.
pls let me know,
1. How to bind IList collections to Grid view?
eg:
IList results=Query.L ist()
GridView1.DataS ource=results;
GridView.DataBi nd();
if i run the above code it will display the result in Grid only if i have the result returned as only 1 row.If more than one row is returned as a result of executing HQL query, it returns the properties of IList in the GridView..
any solution for this problem??
(or)
2 . Is it possible to return the result of HQL query directly in the Form of DataSet?
thanks in Advance,
Comment