This is a migrated thread and some comments may be shown as answers.

[Solved] Sort Column Not working

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thet naing
Top achievements
Rank 1
Thet naing asked on 11 Apr 2013, 08:50 AM
Hi all,

I am using sample of (Grid - Client Edit with Batch Server Update)

Only different is I use  DataTable to bind the grid instance of using asp:SqlDataSource.

Dim objGetBillDoc As New XEFM.FmAcWoTransaction
Dim ds As New DataSet
ds = objGetBillDoc.GetBillingDocument(StrBillNo, strDocType, strTransporttype, strTradeType)
RadGrid1.DataSource = ds.Tables(
"BillingDocumentDetail")
RadGrid1.DataBind()


Problem is, When I click the header to sort, RadGrid1 is disapper.

Any suggestion which code need to be bind for sorting.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Apr 2013, 09:11 AM
Hi,

I suppose you are binding the grid in page load. In order to implement advanced features in radgrid like sorting make sure that it uses NeedDataSource event to bind the grid.

Thanks,
Shinu
Tags
Grid
Asked by
Thet naing
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or