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.

Ensuring that a record is visible in grouped grid

Thread ID:





18038 Aug 23,2004 09:28 AM Aug 23,2004 01:21 PM Windows Forms 2
Tags: Grouping
Administrator [Syncfusion]
Asked On August 23, 2004 09:28 AM

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 09:49 AM

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 01:21 PM

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.

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.