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.
Unfortunately, activation email could not send to your email. Please try again.

How to sort Multiple Columns in Grid Data Bound Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

52119 Nov 22,2006 03:58 AM Nov 23,2006 03:33 AM Windows Forms 5
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 22, 2006 03:58 AM

Hi,

We tried to sort on multiple coloumn of the syncfusion GridDataBoundGrid.Is there any sample code of achieving this functionality,if yes,post it on this site and to mail asap.

Thanks
Hazrat

Administrator [Syncfusion]
Replied On November 22, 2006 05:06 AM

Hi Tannearu,

Here is a KB on multicolumn sorting in a GridDataBoundGrid.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=110

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 22, 2006 06:28 AM

Hi Haneef,
Thanks for your reply.

'create and wire the sorthelper object sortHelper = New GridMultiColSortHelper.GridMultiColSortHelper() sortHelper.WireGrid(Me.gridDataBoundGrid1, True)

but this code is not working as it was asking the namespace for the GridMultiColSortHelper class.

could u pls tell the required namespace

Thanks
Hazarathaiah





Administrator [Syncfusion]
Replied On November 22, 2006 06:47 AM

Hi Hazarathaiah,

The attached sample implements the multicolumn sorting in a grid. It uses the GridMultiColSortHelper class to sort the columns. Please refer to the attached sample for more details.

Sample with NameSpace: http://www.syncfusion.com/Support/user/uploads/MultiColumnSort_e152b3d8.zip

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 22, 2006 08:36 AM

Hi,

Could you pls help me to get fill my GroupingGrid programaticall insted of binding it to a datasource.

I need to fill it at run time with the provided data through loop.

thanks,
Hazrat

Administrator [Syncfusion]
Replied On November 23, 2006 03:33 AM

Hi Tannearu,

The grouping grid currently has no support for dispaying data without using datasource / sourcelist. But you can do this by using the GridControl. In GridControl, you need to use the populate method, please refer to the Grid Population Browser Sample for more details.

Here is a path.
[instal drive] \Syncfusion\Essential Studio\4.3.0.25\windows\Grid.Windows\Samples\In Depth\GridPopulationSample\

The GridPopulationSample will step you through three ways of populating an Essential Grid. The first technique just loops through the cells and uses an indexer on the GridControl to set the values. The second, uses the PopulateValues method that optimally places data from a datasource into a grid range. The last, technique uses an Essential Grid in a virtual manner. When you run this sample, you can specify the size of the grid that is to be populated and then you can time all three methods to compare the performance.

Thanks for your patience.
Best Regards,
Haneef

CONFIRMATION

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.

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.

;