Change Default Title of a Search Window

I know to override the Base Search you can do:

private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args)
{
    switch (args.MethodName)
    {
        case "GetRows":
        case "GetList":
            // Set Search Column to Display (Override Base)
            EpiSearchBase adapterSearchForm = oTrans_adapter.SearchForm;
            //adapterSearchForm.Width = 500;
 
            if (adapterSearchForm != null)
            {
                adapterSearchForm.Text = "Search";
                adapterSearchForm.ClearEpiSearchColumns();
 
                // Parameters: Data Column Name, Column Header Text, Width, Is Result, Position
                adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key1", "Batch ID", 30, true, 0), true);
                adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Character01", "Description", -1, false, 1), true);
                adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key2", "Type", -1, false, 2), true);
                adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key3", "Sub-Type", -1, false, 3), true);
            }
            break;
    }
}

Therefore I am wondering if you can do something like this to your search, perhaps only if you use the Adapter to call it up and not the Helper Method.

2 Likes