Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An equivalent to IncrementalSearch in VFP
Message
De
20/04/2007 13:20:59
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01218364
Message ID:
01218394
Vues:
20
I just implemented an incremental search in a data grid. It finds the record and brings the newly found record to the top of the window as you type in characters. Is that what you mean?

I add a column called myRow to the table and populate it as a 1 up serial. Then in the KeypressUp event of the textbox (this is off the top of my head. If you need the specific code, I can send it tonight):
    DataRow[] dra = myDataTable.Select("Name LIKE '" + textbox.Text.Trim() + "%'";
    if (dra != null && dra.Length > 0)  
    {
       this.myGrid.CurrentRowIndex = Convert.ToInt32(dra["myRowCount"]);
       this.myGrid.Select(Convert.ToInt32(dra["myRowCount"]);
    }
    this.SetFocus(this.textbox);
>Is there an equivalent property/method/technique to using the IncrementalSearch property in VFP on a Listbox?
>
>Richard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform