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

GridFindReplaceDialog doesnt work with GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

51254 Nov 1,2006 12:06 PM UTC Nov 1,2006 01:07 PM UTC WinForms 2
loading
Tags: GridControl
Mikil Bhatkar
Asked On November 1, 2006 12:06 PM UTC

I have used the GridControl in a windows form, but im not able to find any text on the grid using the GridFindReplaceDialog. It displays "The specified text cannot be found"

Does the "find dialog" works only with the GridDataBoundGrid control ?

I have attached the test application.

Thanks in advance.

FindDialog.zip

Administrator [Syncfusion]
Replied On November 1, 2006 12:36 PM UTC

Hi Mikil,

Try this code in Button.Click Event Handler.

//You should activate the grid for searching the cell text using GridFindDialog.
this.gridControl1.Focus();

//You should move the current cell to required search column location if the searchOption is Column Only.
this.gridControl1.CurrentCell.MoveTo(1,2);

fr = new GridFindReplaceDialogSink(this.gridControl1);
frDialog = GridFindReplaceDialog.Instance;
frDialog.SetState(this.fr, "", false);

frDialog.ShowDialog();

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On November 1, 2006 01:07 PM UTC

thanks Haneef... it worked !!!

>Hi Mikil,

Try this code in Button.Click Event Handler.

//You should activate the grid for searching the cell text using GridFindDialog.
this.gridControl1.Focus();

//You should move the current cell to required search column location if the searchOption is Column Only.
this.gridControl1.CurrentCell.MoveTo(1,2);

fr = new GridFindReplaceDialogSink(this.gridControl1);
frDialog = GridFindReplaceDialog.Instance;
frDialog.SetState(this.fr, "", false);

frDialog.ShowDialog();

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

;