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

Scrolling and sorting in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

80538 Apr 8,2009 10:53 PM UTC Feb 20,2018 04:44 AM UTC WinForms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 8, 2009 10:53 PM UTC

In my app, we have the ability to change a property of an object that's being displayed in a GridGroupingControl.
the way that this property gets changed is independant of the grid itself but the value of the property is being displayed in the grid.
When this property is being sorted on and the value gets changed in one of the items in the grid, the grid row moves elsewhere in the grid - as I would expect.
But, I'd like to automatically scroll to the new position of the item. I understand how to programmaticly scroll to the item but I can't seem to identify the right event to do this in. Is there an event that gets fired that I could use to identify the item that just got moved?

Thanks in advance,
Mark


Lingaraj S [Syncfusion]
Replied On April 10, 2009 10:16 AM UTC

Hi Mark,

Thank you for your interest in Syncfusion product.

The RecordValueChanged event is fired, when the record value changed in GridGroupingControl. If you want to scroll view the changed record, please try using SetCurrent() method in RecordValueChanged event to achieve this behavior.

Please refer the sample below:
http://files.syncfusion.com/support/samples/Grid.Windows/Forums/F80538/main.htm

Please let me know if it helps.

Regards,
Lingaraj S.


Administrator [Syncfusion]
Replied On April 13, 2009 04:40 PM UTC

That doesn't seem to work in my situation. The handler for the RecordValueChanged event doesn't seem to get called.
I think it might be because I'm not changing the record the same that the sample is showing.
I'm actually changing a property of an object rather than doing something like this:
gridGroupingControl1.TableModel[row, col].ApplyText(textBox3.Text);

...in the sample.


Lingaraj S [Syncfusion]
Replied On April 14, 2009 05:45 AM UTC

Hi Mark,

Thank you for your update.

In GridGroupingControl, the SourceListRecordChanged event is fired when the bound data was externally modified. Please try using SetCurrent() method in the SourceListRecordChanged event to focus the changed record in GridGroupingControl.

Please refer the code below:

this.gridGroupingControl1.SourceListRecordChanged += new Syncfusion.Grouping.RecordChangedEventHandler(gridGroupingControl1_SourceListRecordChanged);
void gridGroupingControl1_SourceListRecordChanged(object sender, Syncfusion.Grouping.RecordChangedEventArgs e)
{
e.Record.SetCurrent(gridGroupingControl1.TableDescriptor.VisibleColumns[0].Name);
}


Please let me know if you still face the issue.

Regards,
Lingaraj S.



dileep yadav
Replied On February 19, 2018 09:57 AM UTC

it's great platform for download ebooks . 

Arulpriya Ramalingam [Syncfusion]
Replied On February 20, 2018 04:44 AM UTC

Hi Dileep, 
 
Thanks for your appreciation. 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


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

;