Searching in a C1TrueDBGrid

Posted by: s.wortmann on 4 December 2024, 8:24 am EST

    • Post Options:
    • Link

    Posted 4 December 2024, 8:24 am EST - Updated 4 December 2024, 8:29 am EST

    Hello.

    I am utilizing a C1TrueDBGrid which is already populated with numerous records.

    I need to conduct a search within a specific column, for instance, “CoilNumber,” for all entries similar to “Coil123456.”

    I am looking for a VB.Net code that accomplishes the following:

    locate all matching entries,

    add the rows of the found entries to the SelectedRows, and bookmark these rows.

  • Posted 5 December 2024, 12:53 am EST

    Hi,

    To search for a text in a specific column and select all the matching rows, you can iterate the grid’s data and use its SelectedRows property. Please see the attached sample project for reference.

    Attachment: TDBG.Searching.zip

    Best Regards,

    Kartik

  • Posted 5 December 2024, 3:49 am EST

    Hello Kartik,

    Thank you for your prompt reply and assistance. It was successful.

    Best regards,

    Stephan

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels