Information générale
Catégorie:
Codage, syntaxe et commandes
Steve,
I actually tried this. Create a form with the grid and it looks pretty nice. But I cannot make the incremental search work. I tried to set the code in the KeyPress on the TexBox of the Grid. But since the Grid is read only it work but like #&$@......bad.
So I stared doing it with the LisBox today before I left the office (when I posted this message). I wanted to avoid doing it all from scratch. I thought maybe somebody wrote something similar for these cases of have a better/simpler idea.
I checked the download bud did not find anything.
Maybe somebody can direct me to one?
Thanks
>I've done this with a grid. If you happen to be using codemine there is a good example in the download section called powerfind for codemine. My list class is essentially the same without all the searching capabilities.
>
>If you place a grid on a form and dont specify anything (with the grid) when you open the form, the grid will display the default alias in the data environment. A neat tidbit.
>
>For instance you could use a view or cursor that is created on the fly at runtime and it will automatically populate the grid with all the columns.
>
>If however you only wanted to populate certain columns, you would need to do that programatically.
>Thisform.grid1.columncount=5
>thisform.grid1.column1.controlsource=orders.customer
>thisform.grid1.header1.caption='Customer Name'
>etc....
>
>There are ways to make a grid sort by clicking the header and use incremental searching. But it's not as easy as setting a property in a listbox.
>
>I think there is a grid class in the download section that will do this.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement