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

do you have FIND method on the ggc

Thread ID:

Created:

Updated:

Platform:

Replies:

56218 Feb 12,2007 06:06 AM UTC Feb 14,2007 10:21 PM UTC WinForms 5
loading
Tags: Tools
Shachar Shimshon
Asked On February 12, 2007 06:06 AM UTC

hi all.
is there a find method in the ggc?
can you give me a simple example on how to use it?

Administrator [Syncfusion]
Replied On February 12, 2007 06:08 PM UTC

Hi Shachar,

Here is a minimal sample that implements GridFindReplaceDialog for searching the cellvalues in a grid. Please refer to the attached sample for more details and let me know if this helps.
gridFindDialog.zip

Best regards,
Haneef

Shachar Shimshon
Replied On February 12, 2007 07:45 PM UTC

hi.
i have my own search form,and i do not need a dialog.
so please give me a simple example on how to use the find methods from my code.
eg: find the row in which the value in column1=1
and if there is such row - select and ensure it's visible.

>Hi Shachar,

Here is a minimal sample that implements GridFindReplaceDialog for searching the cellvalues in a grid. Please refer to the attached sample for more details and let me know if this helps.
gridFindDialog.zip

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 13, 2007 11:28 PM UTC

Hi Shachar,

Please try this code.

GridRangeInfo frLocationInfo = GridRangeInfo.Cell(1,1);
GridFindReplaceDialogSink fr = new GridFindReplaceDialogSink(this.gridGroupingControl1.TableControl );
GridFindReplaceEventArgs fre = new GridFindReplaceEventArgs("FindTextHere", "", GridFindTextOptions.WholeTable, frLocationInfo);
fr.Find(fre);

Sample : gridFind.zip

Best regards,
Haneef

Shachar Shimshon
Replied On February 14, 2007 08:54 AM UTC

hi hannef.
i try to run your example but it seem's not to work.
i enter text from the first col (col0)
the text is "nine", and now - should it select the maching row?
how can i see it's working?

>Hi Shachar,

Please try this code.

GridRangeInfo frLocationInfo = GridRangeInfo.Cell(1,1);
GridFindReplaceDialogSink fr = new GridFindReplaceDialogSink(this.gridGroupingControl1.TableControl );
GridFindReplaceEventArgs fre = new GridFindReplaceEventArgs("FindTextHere", "", GridFindTextOptions.WholeTable, frLocationInfo);
fr.Find(fre);

Sample : gridFind.zip

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 14, 2007 10:21 PM UTC

Hi Shachar,

How can i see it's working?
>>>>
Try getting the searched value cell location using the CurrentCell.RowIndex and CurrentCell.ColIndex. Please refer to attached sample for implementation.
gridFind_4cdc8d0e.zip

Best regards,
Haneef

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

;