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

Sorting error radgrid

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dingen
Top achievements
Rank 1
dingen asked on 24 Nov 2009, 04:48 AM
Hi

I am trying to sort my RadGrid and it comes up with this error ( the columnname is autogenerated and is called :'inc desc'

Cannot find column Inc.
at System.Data.DataTable.ParseSortString
at System.Data.DataView.CheckSort
at System.Data.DataView.set_Sort
at Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation
at Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable
at Telerik.Web.UI.GridTableView.GetEnumerator
at Telerik.Web.UI.GridTableView.CreateControlHierarchy
at Telerik.Web.UI.GridTableView.CreateChildControls
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback
at System.Web.UI.DataSourceView.Select
at System.Web.UI.WebControls.DataBoundControl.PerformSelect
at Telerik.Web.UI.GridTableView.PerformSelect
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind
at Telerik.Web.UI.GridTableView.DataBind
at Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand
at Telerik.Web.UI.RadGrid.OnBubbleEvent
at System.Web.UI.Control.RaiseBubbleEvent
at Telerik.Web.UI.GridItem.OnBubbleEvent
at System.Web.UI.Control.RaiseBubbleEvent
at Telerik.Web.UI.GridItem.OnBubbleEvent
at System.Web.UI.Control.RaiseBubbleEvent
at System.Web.UI.WebControls.LinkButton.OnCommand
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent
at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
at System.Web.UI.Page.RaisePostBackEvent
at System.Web.UI.Page.RaisePostBackEvent
at System.Web.UI.Page.ProcessRequestMain

regards

Dirk

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Nov 2009, 09:50 AM
Hello Dingen,

The error could occur when you set  the sortexpression  to a column name that does not exist in the datasource of your grid. Please make sure that you have selected the column "inc desc".

Additionally, you can use the following online demo of the product for further reference:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
dingen
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or