TOOLBAR SEARCHING AND SORTING

HI. DEVELOPING A WINDOWS FORMS APPLICATION, TWO BUTTONS, ONE LOADS DATA FROM A CSV FILE INTO A DATA GRID, THE OTHER BUTTON, SAVES THE FILE, NOW HAVE A TOOL BAR, AND A BUTTON, SORT ITEMS, SO DO I THEN CREATE ANOTHER FORM, CLOSE THE PARENT FORM, OPEN THE
CHILD FORM, PUT THE COMBO BOX AND THE BUTTON, THEN USE THE ARRAY TO LOOP THROUGH ALL THE ITEMS ARRAY FOR THE COMBO BOX, CLICK ON THE BUTTON. THEN IT SHOULD CLOSE THE CHILD FORM, OPEN THE PARENT FORM, THEN LAND ON THE FIRST EDITED COLUMN ITEM, FOCUS. SO. HOW
TO DO THIS. ANY TUTORIALS, OR EXAMPLES. THANKS.
http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

Hi Alan,
           Thanks for your reply,I have an excelsheet with repeated values.Here what i am doing is creating am input box and giving a value to search in the excelsheet.for example there are 10 books in a library in that 4 books are same. when i enter the book name in input box the values should be retrieved and displayed in listview.Same as searching I want to sort the values in ascending or descending order to display.for more you can see the same funcionalities in the [Interactive BI features in Xcelsius.pdf  |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a0dd47-7b64-2b10-8e9d-9aaebd274f0d].here they are using sql to retreive the data but my requirement is to do by using excel formulas.
Regards
Bala

Similar Messages

  • Looking to Search and Sort String Twice, though am having issues

    I am inputing from an access file a test library, the files in the access file are out of alphabetical order...thus I search and sort and bring these into LV in alphabetical order.  But I am running into the issue of trying to further search and sort the second column of info via the model number:
    example:
    Model ............. Model #
    Zetor               55
    Challenger        55
    Ford                55
    Zetor               66
    Challenger        66
    Ford                 66
    Zetor               45
    Challenger        45
    Ford                45
    Zetor               96
    Challenger        96
    Ford                 96
    Need to Return the Files as per below:
    Zetor               45
    Challenger        45
    Ford                45
    Zetor               55
    Challenger        55
    Ford                55
    Zetor               66
    Challenger        66
    Ford                 66
    Zetor               96
    Challenger        96
    Ford                 96
    Attachments:
    search & sort string.JPG ‏65 KB

    actually in my original post I had a brain-lapse on what the final sort needed to be....
    I was looking for this:
    Challenger        45
    Challenger        55
    Challenger        66
    Challenger        96 Ford                 45
    Ford                 55
    Ford                 66
    Ford                 96
    Zetor                45
    Zetor                55
    Zetor                66
    Zetor                96
     thanks for the quick response.

  • How can I search and sort media files to eliminate duplicates?

    I have been downloading video files off of a SanDisk media card and I haven't been deleting old files off the media disk. Each time I download the files, I have been downloading a duplicate set of old files.
    Is there a way to sort the duplicates so that I can delete them on my hard drive?

    Hi,
    It should be caused that Windows Search is not installed on the second server. See following steps to install it:
    1) Start Server Manager
    2) Click on Roles in the left navigation pane
    3) Select Add Role in the Roles Summary pane to the right
    4) Select the File Services role and click Next
    5) Select the Windows Search role service and Finish the wizard.
    Meanwhile, when you search for a file such as "data", input keyword data and click the Advanced Search at the bottom to result box. Then you can select "Data and modified" and "is after" December 1, 2010
    Shaon Shan |TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • Java Binary Search and sorting in Java

    My program is suppose to search news articles and alphabetize all the words article individually of the text file. Right now the program alphabetizes all the words of the articles including the numbers. The text file will be located below the code. So basically i need to know how to alphabetize every articles words individually.
    //This program reads an input line from the reader put the worda into an array with a count and increases
    //the count each time a word is repeated. It then sorts the words alphabetically in the array and
    //then prints out the array. There are 4 different articles like this one in the text file
    <ID>58</ID>
    <BODY>Assets of money market mutual funds
    increased 720.4 mln dlrs in the week ended yesterday to 236.90
    billion dlrs, the Investment Company Institute said.
        Assets of 91 institutional funds rose 356 mln dlrs to 66.19
    billion dlrs, 198 general purpose funds rose 212.5 mln dlrs to
    62.94 billion dlrs and 92 broker-dealer funds rose 151.9 mln
    dlrs to 107.77 billion dlrs.
    </BODY>
    import java.util.StringTokenizer;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    public class WordsFrequency
       public static void main(String[] args)
          // Initializations
          FileReader reader = null;
          FileWriter writer = null;
          // Open input and output files
          try
              reader = new FileReader("Reuters00.txt");
              writer = new FileWriter("WordsReport.txt");
          catch(FileNotFoundException e)
             System.err.println("Cannot find input file");
             System.exit(1);
          catch(IOException e)
           System.err.println("Cannot open input/output file");
           System.exit(2);
          // Set up to read a line and write a line
          BufferedReader in = new BufferedReader(reader);
          PrintWriter out = new PrintWriter(writer);
          out.println("Copied file is: Words followed by frequency");
          int count = 0;
           wordCount[] wordsArray = new wordCount[100000];
          boolean done = false;
          while(!done)
             String inputLine;
             try
                  inputLine= in.readLine();
             catch(IOException e)
                System.err.println("Problem reading input, program terminates. " );
                inputLine = null;
             if (inputLine == null)
               done = true;
         sortbyWords(wordsArray,count);
               for(int i = 0; i < count;i++)
                out.println(wordsArray.toString());
    else
                   StringTokenizer tokenizer = new StringTokenizer(inputLine);
              while(tokenizer.hasMoreTokens())
                   String token = tokenizer.nextToken();
                        int lengthofString = token.length();
                        char ch = token.charAt(lengthofString-1);
                        if(ch == '.' || ch == ',' || ch == '!' || ch == '?' || ch == ';')
                   token = token.substring(0,lengthofString-1);
    wordCount wordAndCount= new wordCount(token);
                        boolean skip = false;
                        for(int i = 0; i < count; i++)
                        if(token.equalsIgnoreCase(wordsArray[i].getWord()))
                             skip = true;
                             wordsArray[i].increaseFrequency();
                        if(skip == false)
                                  wordsArray[count] = wordAndCount;
                             count++;
    // Close files
    try
    in.close();
    catch(IOException e)
    System.err.println("Error closing file.");
    finally
    out.close();
         public static void sortbyWords(wordCount [] wArray, int size)
         wordCount temp;
         for (int j = 0; j < size-1; j++)
         for (int i = 0; i < size-1; i++)
         if (wArray[i].getWord().compareToIgnoreCase(wArray[i+1].getWord()) > 0)
              temp = wArray[i];
              wArray[i] = wArray[i + 1];
              wArray[i+1] = temp;
    Edited by: IronManNY on Sep 25, 2008 3:24 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    IronManNY wrote:
    My program is suppose to search news articles and alphabetize all the words article individually of the text file. Right now the program alphabetizes all the words of the articles including the numbers. The text file will be located below the code. So basically i need to know how to alphabetize every articles words individually.You want to strip out the numbers?

  • Searching and sorting in Xcelsius

    Hi,
              I have a requirement for sorting and searching functionality in Xcelsius.Is that possible by using Excel formulas?For searching i have used this Excel formula =INDEX($B$2:$B$15,SMALL(IF($A$1:$A$15=$A$17,ROW($A$1:$A$15)),ROW(1:1)))  the row function is not supported by Xcelsius.Is there any other way or idea to work out those functions in Xcelsius.
    Regards
    Bala

    Hi Alan,
               Thanks for your reply,I have an excelsheet with repeated values.Here what i am doing is creating am input box and giving a value to search in the excelsheet.for example there are 10 books in a library in that 4 books are same. when i enter the book name in input box the values should be retrieved and displayed in listview.Same as searching I want to sort the values in ascending or descending order to display.for more you can see the same funcionalities in the [Interactive BI features in Xcelsius.pdf  |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a0dd47-7b64-2b10-8e9d-9aaebd274f0d].here they are using sql to retreive the data but my requirement is to do by using excel formulas.
    Regards
    Bala

  • Mail search and sort info

    has anyone got any good information or links on Mail sort and search?
    i am not getting results that i would expect (results are missing for all kinds of things) and i am also not finding a way to do simple things like how to search by sender as opposed to searching by term or by title. also, i am having a hard time figuring out if i can search in a particular email address etc, etc.
    i also seem to get a decent amount of crashes in Mail now that i have moved to Lion.
    TIA for any help

    23. write a summary of your post, one that's not as long, and try to be careful with those special tokens that are used for formating.
    hint: use preview button before posting, and not just press it, but also see that your message isn't odd looking[i/] in any way, for example you may have mistyped some formating token or something.
    and in your code parts, add space before or after i in [], so it would be visible, and would not mess up your code and its formating.

  • I can't get rid of somoto toolbar search and default homepage. Somoto doesnt appear in the list of searching and also not as installed software in my computer.

    I can't get rid of Somoto, it doesnt appear in my search engine list and also not in my list of installed add ons or software, but its there, it is also my default homepage if i open a new tab. any idea?
    thanks

    Please do the following.<br><br>
    #In the location bar where you normally type in a web address, type '''about:config''' and hit Enter.<br><br>
    #If you see a window which says "This might void your warranty!", click the button which says "I'll be careful, I promise" so you can continue with the next step.<br><br>
    #In the filter at the top, type: '''keyword.URL'''<br><br>
    #Double click it and remove whatever's in there and replace it with http://www.google.com/search?q= and then click OK.<br><br>
    #Close the tab
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the Firefox button, go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>
    If this suggestion resolves the problem for you, please click the '''Solved it''' button ''next to this post'' after you log in into the forum. This will help others searching for a solution to the same problem.
    Thanks.

  • Help: YouTube app Search and sort problem

    Hi,
    I have problem with the YouTube app.  I know there is a search feature, I found the magnifying glass.  However, I have 3 problems.  
    1.) Search Problem:  It won't search everything on YouTube.  I tried seaching, many results would come up from PB's web brower, but it would NOT on the app.  So, what's the point of the app?  
    2.)  After finding the video, the app does not allow me to find/list "video by the same author" or "related video", the "related videos" are not so close "related" compare the web version.
    3.)  When press on the "info" buttom on the app.  The author's describing and format are off.  or not display completely..  
    Would someone please tell me if there will be a fix?  or how to fix it?
    Thanks

    I am not having that problem. Could you post screen shots?
    Be a Shepard and not an iSheep.

  • Dreamweaver - Search et sort function

    I would like to know howcréeate a simple search and sort
    function : for example, I would like customers to find
    "Appartements" in "Rome" "price beetween 100 000 and 200 000
    €" ? I would like the list of answers to be sort
    automatically. Could somebody help me ? Thanks.
    Bonjour, je cherche comment créer, sur Dreamweaver, un
    menu de recherche mutli-critères qui permette à
    l'utilisateur de sélectionner via des menus déroulants
    et/ou des cases à cocher, des requêtes telles que
    "Appartements" à "Rome" "prix entre 100 000 et 200 000
    €". Je souhaite que le résultat (en liste par ex.) soit
    trié automatiquement. Merci pour votre réponse.

    You would have to do this with your server scripting. While
    DW can help you
    establish your data connection, and place that data on the
    page once you
    have retrieved it from the database, the searching and
    sorting would need to
    be handled in the SQL query that retrieves this data.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "bledH" <[email protected]> wrote in message
    news:g8mbgk$ism$[email protected]..
    >I would like to know howcr?eate a simple search and sort
    function : for
    > example, I would like customers to find "Appartements"
    in "Rome" "price
    > beetween 100 000 and 200 000 ?" ? I would like the list
    of answers to be
    > sort
    > automatically. Could somebody help me ? Thanks.
    >
    > Bonjour, je cherche comment cr?er, sur Dreamweaver, un
    menu de recherche
    > mutli-crit?res qui permette ? l'utilisateur de
    s?lectionner via des menus
    > d?roulants et/ou des cases ? cocher, des requ?tes telles
    que
    > "Appartements" ?
    > "Rome" "prix entre 100 000 et 200 000 ?". Je souhaite
    que le r?sultat (en
    > liste
    > par ex.) soit tri? automatiquement. Merci pour votre
    r?ponse.
    >

  • I updated to Firefox 3.6.8 and now I get an anycolor start page that keeps popping up and my google toolbar search no longer works.

    Ever since updating to 3.6.8 I open firefox and get two tabs. One for my homepage and one which is an "Anycolor start page". Hugely annoying and can't stop the 2nd tab from popping up every time I start Firefox. Also my google toolbar search function no longer works. Type in a search and hit enter and nothing happens.

    I have exactly the same problem. I entered Firefox in safe mode and deleted AnyColor from my addons. But now when I click on the addon button this is what I get:
    "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionManager.js:623"
    But nothing happens and I have to reboot my computer because it freezes on this message. Damn, I wish I had not upgraded to Firefox 3.6.8
    Somebody please help! Thanks

  • WebPart: Display the search result in an spgridview with filter and sort

    hi,
    For explain more in details.
    I need the search result in a table displaying some meta common in the different library.
    I've to have the possibility to filter and sort the grid.
    i'm trying to extend Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
    i can have the result from the textbox search with: SharedQueryManager.GetInstance(this.Page).QueryManager
    My queryManager is populate in the method: CreateChildControls
    I put the sample code i use. and in the populateData method, my querymanager is null while in the createChildContriol, it's correctly populate with : this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Search.Internal.WebControls;
    using Microsoft.Office.Server.Search.Query;
    using Microsoft.Office.Server.Search.WebControls;
    using System.Data;
    using System.Xml;
    namespace CustomSearchResultWebPart.CustomCoreResultWebPart
    [ToolboxItemAttribute(false)]
    public class CustomCoreResultWebPart : Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
    private ObjectDataSource objDS;
    private const string ObjectDataSourceID = "gridViewDataSource";
    private QueryManager queryManager;
    private SPGridView gridView = new SPGridView();
    protected override void CreateChildControls()
    //here is correctly populate
    this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
    try
    LoadSearchGrid();
    catch (Exception ex)
    Page.Response.Write(ex.Message + " - " + ex.StackTrace);
    //base.CreateChildControls();
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    protected override void OnPreRender(EventArgs e)
    //gridView.DataBind();
    base.OnPreRender(e);
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    public DataTable populateData()
    DataSet dtSet = null;
    DataTable dtTable = null;
    //here is my query manager is null
    if (queryManager != null && queryManager.Count > 0)
    XmlDocument xdoc = new XmlDocument(); //We are using XmlDocument
    xdoc = queryManager.GetResults(queryManager[0]);//xml returned by search
    if (xdoc != null)
    XmlReader xmlReader = new XmlNodeReader(xdoc);
    dtSet = new DataSet();
    dtSet.ReadXml(xmlReader);
    if (dtSet.Tables.Count > 1)
    dtTable = dtSet.Tables["Result"];
    return dtTable;
    private void LoadSearchGrid()
    this.objDS = new ObjectDataSource();
    this.objDS.ID = ObjectDataSourceID;
    this.objDS.SelectMethod = "populateData";
    this.objDS.TypeName = this.GetType().AssemblyQualifiedName;
    this.objDS.ObjectCreating += new ObjectDataSourceObjectEventHandler(objDS_ObjectCreating);
    this.Controls.Add(objDS);
    gridView.ID = "_gridView";
    gridView.AutoGenerateColumns = false;
    gridView.Width = new Unit(100, UnitType.Pixel);
    gridView.EnableViewState = false;
    gridView.AllowPaging = true;
    gridView.PageSize = 5;
    gridView.DataSourceID = ObjectDataSourceID;
    this.Controls.Add(gridView);
    void objDS_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    //e.ObjectInstance = objDS;
    protected void gridView_RowDataBound(object sender, GridViewRowEventArgs e)
    //throw new NotImplementedException();
    Do you have a sample that i can use or some tutorial?
    thanks for your help

    I added this in my class
    public class CustomResultsDatasource : CoreResultsDatasource
    public CustomResultsDatasource(Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart parentWebPart)
    : base(parentWebPart)
    View = new CustomResultsDatasourceView(this, GetType().Name);
    public class CustomResultsDatasourceView : CoreResultsDatasourceView
    public CustomResultsDatasourceView(SearchResultsBaseDatasource dataSourceOwner, string viewName)
    : base(dataSourceOwner, viewName)
    //make sure we have a value for the datasource
    if (DataSourceOwner == null)
    throw new ArgumentNullException("DataSourceOwner");
    CustomResultsDatasource datasource = this.DataSourceOwner as CustomResultsDatasource;
    this.QueryManager = SharedQueryManager.GetInstance(datasource.ParentWebpart.Page).QueryManager;
    And this in my customSearchResultWebPart
    protected override void CreateDataSource()
    //base.CreateDataSource();
    this.DataSource = new CustomResultsDatasource(this);
    How can i use queryManager in populateData?
    thanks for your help

  • Why does google (and only google) no longer work in toolbar search box?

    The search box on the Firefox toolbar - not the google toolbar- no longer works if google is selected as search engine, gives a not found error to any search. Other search engines work, but google is broken. Google works fine anywhere else, just not from stock toolbar search box. Windows XP, Firefox 16.0.1.

    Thanks for the help, but that didn't work. "keyword.URL" was not bold and it wouldn't allow me to select reset. what next?

  • Query and sort content from two lists using search API

    Hi,
    I have a custom web part which I would like to query two different lists and sort the results by Created Date. One is a list of news articles and the other contains blogs. So basically the result set will be an intermix of news and blog items sorted by date.
    I would also like to do this by query through the search API. Does anybody have any sample code to do this?
    thanks,
    Sherazad.
    Sherazad

    Hi Sherazad:
    To use the JOIN operator in CAML, your lists must have a
    defined relation(Lookup column). You can refer to sample code that I list as follow.
    Create your query from one of your lists.
    SPList Projects= SPContext.Current.Site.RootWeb.Lists["Projects"];
    SPQuery query = new SPQuery();
    To do the join, setquery.Joins
     <Join Type="INNER" ListAlias="Contacts">
        <Eq>
            <FieldRef Name="ProjectManager" RefType="ID" /> ///
    ProjectManager is a Lookup Column.
            <FieldRef List="Contacts" Name="ID" />
        </Eq>
     </Join>
    And query.ProjectedFields (To tell SharePoint how to project the lookup columns into the result)
    <Field Name="Project Name" Type="Lookup" List="Projects" ShowField="Title">
    /// My Project Name is a Display Name in Memory so you can give a name by yourself But ShowField must be Internal Name of the Column(Project Name)
    You can add a lot of columns that you want to display.
    Everything comes from memory.
    To choose the fields to display set query.ViewFields
    <FieldRef Name="Your Internal Name of Column Or
    ProjectedFields - Field Name">
    <FieldRef Name="Your Internal Name of Column Or
    ProjectedFields - Field Name">
    <FieldRef Name="Your Internal Name of Column Or
    ProjectedFields - Field Name"> 
    Then
    SPListItemCollection result = ListA.GetItems(query);

  • Search and search next in standard toolbar

    Hi Everyone,
    In my screen, I have a standard toolbar with these button search and search next.
    There are 2 grids and 2 frames in my screen.
    When i press the search button it has to search for a given in the entire screen - which has the grids and the frames with some input fields, checkboxes and radiobuttons.
    How can I implement this is there any function module?
    Any help on this will be greatly appreciated.
    Thanks in advance.
    Prabs.

    Hi Rich,
    There must be some fm to find for a given string in the entire screen.
    I know there are individual find buttons for the grid. But my requirement is to find for given string in the entire screen which has the frames with input fields and grids.
    This find button is common button which is in the standard toolbar.
    I think now you got my point.
    thanks,
    Prabs.

  • How to search and delete an email from the mailbox

    hi,
    have a hybrid scenario, exchange 2013 and office 365
    what command should I use to search and delete an email from the organization mailbox i.e. I do not want that email to be in any users inbox.
    I have tried this command but it does not work, it says search-mailbox is not recognized as the name of the command let.
    Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'Subject:"Download this file"' -DeleteContent
    kindly assist.
    Kind Regards, Khuzema R.

    Hi Khuzema
    This can be accomplished by search-mailbox command
    First you need to create a new role group
    To Create –  New-RoleGroup “Mailbox Import-Export Management” -Roles “Mailbox Import Export”
    Then add the user to the group
    To Add user – Add-RoleGroupMember “Mailbox Import-Export Management” -Member Administrator
    Search the mailbox
    get-mailbox -ResultSize unlimited -IgnoreDefaultScope | search-mailbox -SearchQuery ‘Subject:”virus infected”’ -LogOnly -TargetMailbox administrator -TargetFolder filter -LogLevel Full
    Now we need to run the below command to search the infected emails and delete all of them in the whole organization
    get-mailbox -ResultSize unlimited -IgnoreDefaultScope | search-mailbox -SearchQuery ‘Subject:”virus infected”’ -TargetMailbox administrator -TargetFolder filter -deletecontent -LogLevel Full
    Also you can do a message tracking with the subject and delete them
    Get-ExchangeServer | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true} | Get-MessageTrackingLog -Messagesubject “Virus Infected” | Select-Object Timestamp,ServerHostname,ClientHostname,Source,EventId,Recipients
    | Sort-Object -Property Timestamp
    I have written a blog with regards to the same. You can always refer this which might mostly  help you in your scenario
    http://exchangequery.com/2014/10/16/steps-to-delete-circulated-suspicious-emails-with-search-mailbox/
    Thanks 
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

Maybe you are looking for