Ticket T681456
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Searching for record trough multilevel grid structure

How to search in master and detail grids

created 7 years ago (modified 7 years ago)

[DevExpress Support Team: CLONED FROM T634888: ASPxGridView - Instant Search Panel in Detail Grid]
Hey,

I do have exactly same type of problem, i am using tedit to find the text, that is present in master grid, also, if  few of the master grids have the detail grid, and the text that we are looking is not present in a perticular mater grid but present in its detail grid, then how can i show those detail grid rows, Also i am working on Delphi, please give me a solution in Delphi.

Answers approved by DevExpress Support

created 7 years ago

Hello,

A similar question has been already discussed in our Support Center. Please refer to the T549788: Searching for record trough multilevel grid structure ticket for the information.

    Show previous comments (8)
    DevExpress Support Team 6 years ago

      Thanks, Vijay. It will take us some time to build a demo project and adapt your code to it. It would be great if you provide us with a small sample project demonstrating your scenario.

        Hi Paulo,
        I am really new to this feature of Dev Express, let me explain you my Scenario. I am working on a Provider mode(No Aware) data controller, data is loaded in the cxGrid from a file.
        Basically, I have to search the master-detail grid, for example, if I am having 10 master lines, out of them, 5 master lines have a detail grid.
        if I am searching for data using TEdit, I have three cases:

        1. when the data is present in the master line which is not expandable i.e. does not have the detail grid
        2. When data is present in master and the detail grid
        3. When the data is present in the detail grid only of a master grid.

        Please, give me a sample project in Delphi.

        Regards

        DevExpress Support Team 6 years ago

          Hello,

          I've attached a small test project that demonstrates my suggestion in action. The main idea is as follows:

          1. Filter Detail View data;
          2. Iterate through all master records and check whether each of them has detail records;
          3. Hide master records that don't have the required text in cells and have no detail records. If a master record has detail records, don't work with it.

          If this approach does not work in your situation, please provide us with a small test project and some test data.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.