REBOL [ Title: "Demo 4 - List View with data manipulation" Short: "Data Manipulation" Author: ["Henrik Mikael Kristensen"] Copyright: "2006 - HMK Design" Filename: %demo04.r Version: 0.0.1 Created: 25-Feb-2006 Date: 25-Feb-2006 License: { BSD (www.opensource.org/licenses/bsd-license.php) Use at your own risk. } Purpose: { List View with inline editing fields and some row manipulation. Doubleclick a row to edit it. Click the buttons to insert, append and remove rows. } History: [] Keywords: [data manipulation inline-editing sorting] ] do http://www.hmkdesign.dk/rebol/list-view/list-view.r view layout [ across space 2 li: list-view 400x400 with [ editable?: true data: [ ["123" "456" "789"] ["AltME" "is" "fun"] ["Hauling out" "the garbage" "is not fun"] ] ] return btn "Add Row" [li/append-row] ; appends a row btn "Insert Row" [li/insert-row] ; inserts a row after selected btn "Remove Row" [li/remove-row] ; removes the selected row ]