Is is possible to filter a datagrid content ?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
titobal
Posts: 31
Joined: Thu Aug 06, 2009 1:51 pm

Is is possible to filter a datagrid content ?

Post by titobal » Sun Aug 09, 2009 11:28 am

I have a datagrid which is initialy loaded by a tab delimited text file.

I would like to know if for a specified colum it is possible to filter
the rows displayed accordingly to a searched text input ?

Thanks.

titobal
Posts: 31
Joined: Thu Aug 06, 2009 1:51 pm

Any tip ?

Post by titobal » Thu Aug 20, 2009 9:06 am

Any tip ?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Aug 20, 2009 10:51 am

Hi titobal,

...
put the dgText of grp "DataGrid" into tText
put fld "Search field" into tSearch
filter tText with ("*" & tSearch & "*")
## or whereever you need the "wildcards" -> *

set the dgText of fld "DataGrid" to tText
...

You get the picture :)


Best

Klaus

titobal
Posts: 31
Joined: Thu Aug 06, 2009 1:51 pm

Wow :-) Thanks again Klaus !

Post by titobal » Thu Aug 20, 2009 8:34 pm

Wow :-) Thanks again Klaus !

Post Reply