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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Ensuring that a record is visible in grouped grid

Thread ID:





18038 Aug 23,2004 01:28 PM UTC Aug 23,2004 05:21 PM UTC WinForms 2
Tags: Grouping
Administrator [Syncfusion]
Asked On August 23, 2004 01:28 PM UTC

Hello, I have a GroupingGird that is completely rebuilt at runtime each time a user asks to refresh the entire grid How do I ensure that the last active table.CurrentRecord is visible? Before refreshing the gird, I make a note of the CurrentRecord''s primary key and use: int dvIndex = dataview.Find(primaryKeyValue); Record foundRecord = this.GridTableModel.Table.UnsortedRecords[dvIndex]; this.CurrentRecord = foundRecord; this.GridTableModel.Table.ShowRecord(this.CurrentRecord, true); But the grid occasionally doesn''t show the current record even though the Navigation Bar is at the correct record number - this problem only seems to occurs when grouping is active Thanks Jason

Administrator [Syncfusion]
Replied On August 23, 2004 01:49 PM UTC

It''s worth pointing out that this only happens when I toggle between grouping and non-grouping views, ie if I stay in a grouped view but only change grouping column it work OK.

Administrator [Syncfusion]
Replied On August 23, 2004 05:21 PM UTC

Does it work if you do additionally call TableControl.ScrollInView(Table.CurrentElement) ? Thanks, Stefan


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

Live Chat Icon For mobile
Live Chat Icon