How to resize the columns of a datagrid?
sritcp at gmail.com
Tue Aug 4 10:01:39 EDT 2015
You may want to try this:
1. Save the original width of datagrid in a custom property cOldWidth.
2. In the datagrid script, handle "resizeControl":
put (the width of me / the cOldWidth of me) into tFraction
repeat for each line tLine in the dgProp[columns] of me
set the dgColumnWidth[tLine] of me to the round of (tFraction * the
dgColumnWidth[tLine] of me)
Make sure that the minimum column width and column resizablity properties
are properly set.
I haven't tried this out. Hope it works. The idea is to handle the change
View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-resize-the-columns-of-a-datagrid-tp4694576p4694577.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode