best way to filter a datagrid
Posted: Fri Nov 29, 2013 6:01 pm
I've got a datagrid with a date column. Some rows have a date, and others have the date field as empty.
I don't want to display both the empty and populated fields at the same time.
So I have a couple of radio buttons set up to switch back and forth between views.
The problems is, what's the best way make some rows "not visible" based on the value of this 1 field?
Here's an example, by extracting the data to do a filter and then re-populating the table.
Is there a better way to do this? Thanks-- appreciate the pointers.
I don't want to display both the empty and populated fields at the same time.
So I have a couple of radio buttons set up to switch back and forth between views.
The problems is, what's the best way make some rows "not visible" based on the value of this 1 field?
Here's an example, by extracting the data to do a filter and then re-populating the table.
Code: Select all
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