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.

Disabling Replace Button in Find Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

24797 Feb 10,2005 05:04 PM Feb 11,2005 02:43 PM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 10, 2005 05:04 PM

we are using Find/Replace (GridFindReplaceDialog ) dialog that provides user to find text on data bound grid. users want the replace button to be disabled.. how do i achieve this ? Regards Yogi

Administrator [Syncfusion]
Replied On February 10, 2005 07:53 PM

Does this method in GridFindReplaceDialog help? /// /// Initializes the dialog. /// /// The target for find / replace operations. /// The text to be shown in find text box. /// Specifies if dialog should be shown in find-only or replace mode. public void SetState(IGridFindReplaceDialogSink view, string str, bool bReplace) Stefan >we are using Find/Replace (GridFindReplaceDialog ) dialog that provides user to find text on data bound grid. > >users want the replace button to be disabled.. how do i achieve this ? > >Regards >Yogi

John Baker
Replied On February 11, 2005 01:33 AM

It doesn''t do what he is asking. I need the same functionality he is asking for. We have a grid that is readonly, and the user should not be able to get to the "Replace" state of the dialog. I need a "FindOnly" state where the Replace button is disabled or not there at all. >Does this method in GridFindReplaceDialog help? > > > /// > /// Initializes the dialog. > /// > /// The target for find / replace operations. > /// The text to be shown in find text box. > /// Specifies if dialog should be shown in find-only or replace mode. > public void SetState(IGridFindReplaceDialogSink view, string str, bool bReplace) > > >Stefan > >>we are using Find/Replace (GridFindReplaceDialog ) dialog that provides user to find text on data bound grid. >> >>users want the replace button to be disabled.. how do i achieve this ? >> >>Regards >>Yogi

John Baker
Replied On February 11, 2005 01:34 AM

Let me clarify. When you use the SetState call you provided, it initialized the dialog into a find state, but you can still click the replace button and get it into the replace state. We don''t want to be able to get into this replace state. >It doesn''t do what he is asking. I need the same functionality he is asking for. We have a grid that is readonly, and the user should not be able to get to the "Replace" state of the dialog. I need a "FindOnly" state where the Replace button is disabled or not there at all. > >>Does this method in GridFindReplaceDialog help? >> >> >> /// >> /// Initializes the dialog. >> /// >> /// The target for find / replace operations. >> /// The text to be shown in find text box. >> /// Specifies if dialog should be shown in find-only or replace mode. >> public void SetState(IGridFindReplaceDialogSink view, string str, bool bReplace) >> >> >>Stefan >> >>>we are using Find/Replace (GridFindReplaceDialog ) dialog that provides user to find text on data bound grid. >>> >>>users want the replace button to be disabled.. how do i achieve this ? >>> >>>Regards >>>Yogi

Administrator [Syncfusion]
Replied On February 11, 2005 06:17 AM

Here is a thread that has some code snippets in it. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=17481

John Baker
Replied On February 11, 2005 02:43 PM

Thank you Clay. That is exactly what I needed. >Here is a thread that has some code snippets in it. > >http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=17481

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.

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.

;