We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual mode Grid Control - Sorting and Column Drag drop

Thread ID:





78913 Jan 11,2009 08:24 AM UTC Jun 18,2010 02:39 PM UTC WinForms 3
Tags: GridControl
Tharindu Pati
Asked On January 11, 2009 08:24 AM UTC


I am using a Grid Control in virtual mode. Does it support sorting and Column reorder via drag and drop in Virtual mode.


Rajadurai C [Syncfusion]
Replied On January 12, 2009 05:52 AM UTC

Hi Pats,

Thanks for your interest in Syncfusion products.

Virtualgrid Sorting:

In a virtual grid, there is no built-in support for sorting. The reason for this is in a virtual Grid, the data is maintained seperately and is provided on demand to the grid using the QueryCellInfo event handler. So whatever the data comes in through this event handler, the grid just displays it. It has no control over the external datasource.
One way to achieve sorting is, create some sort of index array during your sort where the array tracks in some manner the relationship between the unsorted data and the sorted data. Then in your QueryCellInfo handler, you would use this array to get the proper reference for the requested row.

Please refer to the following sample that shows this.

Column Reordering through Drag drop:

Column reordering is not directly supported in the virtual grid.

To manage this, you need to maintain a correspondence between the initial col positions and any moved col positions.

Please refer to the following sample that shows column reordering by maintaining col positions through an array which is supplied as colindex while moving.


Derek Edwards
Replied On June 16, 2010 08:59 PM UTC

Is it possible to update the link to this sample? I am interested in the solution to this issue

Rajadurai C [Syncfusion]
Replied On June 18, 2010 02:39 PM UTC

Hi Derek,

Thanks for your update.

We regret for the inconvenience caused with the broken sample links.

Here are the modified links for your reference.
1) Virtual Grid Sorting.

2) Column reordering through drag'n'drop



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon