Object datasource questions

A

Annie

hello guys,

I am using Object Datasource in my GUI and binding the GRID's data source to
Object Datasource and
everything is working ok. Pageing and sorting is working fine too ...

However, what I want is to set the Grid source to object data source by code
(not design time) which still works fine
however the paging and sorting raises error ... i do as below:

If Page.IsPostBack = False Then

Me.grdCustomers.DataSource = Me.ODSCustomers

Me.grdCustomers.DataBind()

grdCustomers.AllowPaging = True

grdCustomers.AllowSorting = True

End If



Is there anything else I am missing?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top