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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Find & Replace Dialog

Thread ID:





13347 Apr 27,2004 07:26 AM UTC Apr 27,2004 05:26 PM UTC WinForms 1
Tags: GridControl
Asked On April 27, 2004 07:26 AM UTC

Clay, I saw the sample for Find & Replace Dialog. I would like to implmenet same way the Find & Replace Dialog works microsoft word. Example. Col1 Col2 12 1 23 4 44 5 5 6 7 23 In the above example, if I search and replace 23 I should able to replace after twice i pressed the ''Replace'' button. Once it replaced, I want to display still the dialog box, which should not close. ----------------------------------- Sample code private void button7_Click(object sender, System.EventArgs e) { // to show the dialog: GridFindReplaceDialog frDialog = GridFindReplaceDialog.Instance; frDialog.SetState(GridFindReplaceDialogSink, "", false); frDialog.Options = GridFindReplaceDialogOptions.All; frDialog.Text = "Great Boss"; //GridFindReplaceDialogOptions options = GridFindReplaceDialogOptions.All; frDialog.Show(); } GridFindReplaceDialogSink findReplaceDialogSink; public GridFindReplaceDialogSink GridFindReplaceDialogSink { get { if (findReplaceDialogSink == null) { findReplaceDialogSink = new GridFindReplaceDialogSink(gridDataBoundGrid1); } return findReplaceDialogSink; } } ------------------ Thanks Satish

Administrator [Syncfusion]
Replied On April 27, 2004 05:26 PM UTC

Satish, do you have source code for the grid? If yes, check out the implementation of GridFindReplaceDialogSink. You can copy/paste the code for GridFindReplaceDialogSink and GridFindReplaceDialog into different classes in your project and modify the code so that it fits your needs. I don''t think you will be able to customize the find/replace behavior to your needs by just handling events. But, the grid lets you use any class that implements IGridFindReplaceDialogSink. GridFindReplaceDialogSink is the default implementation of IGridFindReplaceDialogSink. If you copy these classes to your project you can use them instead of the default GridFindReplaceDialogSink the grid provides. 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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon