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.

Find and highlight a record by Value/Key in GGC

Thread ID:





42880 Apr 9,2006 06:13 PM Apr 17,2006 05:03 PM Windows Forms 4
Tags: GridControl
Asked On April 9, 2006 06:13 PM

Hi to all, does someone has a hint? I need to find and highlight a row in a databound gridgroupingcontrol. I''ve got the column-name and the value. What is the fastest way when the grid is filtered or grouped? Thanks in advance and always a good time Volker

Administrator [Syncfusion]
Replied On April 10, 2006 12:43 AM

Hi Volker, The fastest way to format a row depending on a column value is by using the GridConditionalFormatDescriptor. Please refer to this forum thread for more details. Regards, Calvin.

Replied On April 10, 2006 08:34 AM

Thanks Calvin, this solves another "problem" I''m working with (it''s not too easy to find your way through all these functions and properties and objects and and and). My task is: To find a Record (say OBJECTID=112) by searching in the underlying datasource, make the record the current record in the grid and scroll it in view (mark and ScrollInView() are solved), but I''m not too sure how to search for the requested record and to position the CurrentCell in the grid. Should I loop through all rows of the grid, the underlying datasource? Is there already somewhere a method to search in a GGC? It''s a beginners question I think. Btw.: Is there a Diagram (say as a pdf) of the ObjectClasses (hierarchical) and Interfaces? Thanks again and a nice day Volker

Administrator [Syncfusion]
Replied On April 11, 2006 01:30 AM

Hi Volker, The GridFindReplaceDialogSink can be used to find a record. This will be faster. Please refer to the attached sample. You can also loop through the this.gridGroupingControl.Table.Records and find a particular record. Have a look at this forum thread for more details. And about the Class Diagram for Essential Grid, we do not have one yet. We are working on it and will get it soon. Regards, Calvin.


Replied On April 17, 2006 05:03 PM

Hello Calvin, thanks for your kind support. I found out that it is much faster for my task to loop through the records, but your example opened my eyes on Record[i].SetCurrent(), and I never thought about a "GridFindReplaceDialogSink". Woah, a Diagram would be really helpful. Thanks again and kind Regards Volker


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.