|
I guess what I’d do is define the
columns of the DataGrid explicitly where each column is for an individual
width. Your dataProvider to the grid would then be a collection of items where
each item is for a given length (you might want to lock the leftmost column and
have that value be the actual length. For all the other columns you can
use a labelFunction that figures out which width the column is for, then looks
up the price based on length. Make those columns editable. When you
receive an edit event from the Grid you can simply figure out the appropriate
width/length and update whatever data structure you are using. If you
wanted to build this logic into the source collections themselves that might be
fine, the question is whether your data structures are going to be consistent
enough to handle this or whether you might need to do some pre-processing that
negates the value a DataGrid-ready data structure. Not sure if I’m making sense this
late at night, but it’s a shot. Matt From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of lostinrecursion Hi all, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |

