I have two questions.
- Can any one please tell me how do I do the content-based automatic sizing in radgridview?
- How can I set the datasource of grid as generic list or list?
Example:
rad_grid_Interaction_View.DataSource = SelectMyFollowups(request);
Code for SelectMyFollowups:
Public Function SelectMyFollowups(ByVal request As SelectMyFollowupsRequest) As InteractionViewSimpleResponse
Try
Return peer.SelectMyFollowups(request)
Catch ex As Exception
log.Error(ex)
Throw ex
End Try
End Function
the return set InteractionViewSimpleResponse is a list called InteractionViewSimpleResponse. If I do this I dont get any results shown in grid.
If I change the return set of the method to dataset as shown below, then I am able to see results.
Public Function SelectMyFollowups(ByVal request As SelectMyFollowupsRequest) As dataset
Try
Return peer.SelectMyFollowups(request)
Catch ex As Exception
log.Error(ex)
Throw ex
End Try
End Function
Your help is very much appreciated.