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.
Syncfusion Feedback

search on grid

Thread ID:





31896 Jul 18,2005 09:17 AM Jul 21,2005 05:18 AM Windows Forms 5
Tags: GridControl
Catinat Velmourougan
Asked On July 18, 2005 09:17 AM

hi I want the ctrl + F functionality on the grid. The search should be on a single col. How to go about this? regards, catinat

Administrator [Syncfusion]
Replied On July 18, 2005 09:29 AM

The grid\samples\quickstart\gridpad sample has a Find/Replace menu item on the Edit menu that implements a Find using a GridFindReplaceDialogSink class. Here is a forum thread that discusses how to do this. It has 2 different samples in it (click the little disk icons above the post windows to get the attachments. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=4509

Catinat Velmourougan
Replied On July 19, 2005 06:56 AM

hi Does it work for grouping grid also? If not how to approach the same in grouping grid? regards, Cati

Administrator [Syncfusion]
Replied On July 19, 2005 07:39 AM

Here is a forum thread discussing seaching in a grouping grid. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=19910

Catinat Velmourougan
Replied On July 21, 2005 02:25 AM

hi I have implemented a simple find based on the filteredrecords concept. Now I have a new requirement,"when a record is found a particular column of the record should become active" I applied the following code : //recordPos is the found record''s position Record record = this.groupingGrid.SyncfusionGridControl.Table.Records[recordPos]; if (this.groupingGrid.SyncfusionGridControl.TableDescriptor.VisibleColumns.Contains("col1")) { record.SetCurrent("col1"); } But the above code just highlights the cell.The requirement is to make the cursor blink on the cell (col1 is an editable col). I also have a find modalless dialog which gets the text to be searched above the grid.

Administrator [Syncfusion]
Replied On July 21, 2005 05:18 AM

After calling GridRecord.SetCurrent, try this code: this.gridGroupingControl1.TableControl.Focus(); this.gridGroupingControl1.TableControl.CurrentCell.BeginEdit(); TextBox tb = this.gridGroupingControl1.TableControl.CurrentCell.Renderer.Control as TextBox; if(tb != null) tb.SelectAll(); The last 2 lines select all the text. If you just want the cursor at the beginning of the text, you can omit those lines.


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