exposes two collections that contain data rows:
- contains all data rows that belong to RadGridView
. Data operations such as grouping, sorting, filtering, etc. do not change the content of the collection or the order in which the row objects exist in the collection.
- returns the data rows that are currently represented by RadGridView
in the order in which they appear. The collection is modified every time a data operation (grouping, sorting, filtering) occurs.
When you sort a certain column, the rows appear according to the applied SortDescriptor
. The drag and drop behavior doesn't affect this order. This is desired behavior.
supports custom sorting functionality which allows you to implement your own custom logic for the sort order. A sample idea is to use a separate column for the order index. Thus, you can use this field for the custom sorting logic and determine the sort order. Then, when you reorder the rows, you can manipulate the order index and thus control the sorting as well. Additional information about the custom sorting behavior and how to use its API is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/gridview/sorting/custom-sorting
Feel free to use a similar approach for achieving the custom requirement that you have.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.