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
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