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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl jump to top after sorting a column

Thread ID:

Created:

Updated:

Platform:

Replies:

107054 Feb 9,2013 03:29 PM UTC Jul 18,2016 12:11 PM UTC WinForms 4
loading
Tags: GridControl
Gaukhar Massabayeva
Asked On February 9, 2013 03:29 PM UTC

Hello I would like to sort a column and after the sorting is done focus should go back to the top instead currently it is where it was when sort event occured and user has to manually scroll to the top.
 
Thank you

Arun Kumar V [Syncfusion]
Replied On February 11, 2013 11:57 AM UTC

Hi Gaukhar Massabayeva,

Thanks for your interest in Syncfusion products.

Query:

sorting is done focus should go back to the top

You can customize the current cell to be moved to the top cell or other cell you wanted by using the following  currentcell.moveto method.

Please make use of the following code and let me know if the issue is solved.

this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(2, 2, GridSetCurrentCellOptions.SetFocus);

You can make use of the following sortedcolumns changed event.

Please let me know if you have any other concerns.

Regards,

Arun.


TrySyncfusion
Replied On July 15, 2016 03:23 AM UTC

Hi Gaukhar Massabayeva,

Thanks for your interest in Syncfusion products.

Query:

sorting is done focus should go back to the top

You can customize the current cell to be moved to the top cell or other cell you wanted by using the following  currentcell.moveto method.

Please make use of the following code and let me know if the issue is solved.

this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(2, 2, GridSetCurrentCellOptions.SetFocus);

You can make use of the following sortedcolumns changed event.

Please let me know if you have any other concerns.

Regards,

Arun.


It works, but why MoveTo(2,2) ? Does (2,2) point to the top-left cell ? 

Nicolas
Replied On July 18, 2016 05:04 AM UTC

I believe not, I think it should be 1,1, else you can try 0,0, it seems like an arbitrary coordinate for the example. You can move the focus anywhere on the grid with this method - Nicolas

Piruthiviraj Malaimelraj [Syncfusion]
Replied On July 18, 2016 12:11 PM UTC

Hi Customer, 

The top left cell indices may be differed due to sample customization. If the grid has CaptionRow and GroupDropArea, the top cell indices will be changed. You can move the current cell focus to anywhere on grid using MoveTo method of CurrentCell. Please let us know if you have any queries. 

Regards, 
Piruthiviraj 


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.

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

;