Page 1 of 1
DataGrid - delete a line
Posted: Tue Aug 11, 2015 8:30 pm
by dantomlin
What would be the best way to delete a line in a data grid? I also might have other lines in the data grid and only want to delete the one line
is there a data grid function that would delete the entire line?
Thanks, Dan
Re: DataGrid - delete a line
Posted: Tue Aug 11, 2015 9:37 pm
by dunbarx
Hi.
There is the "deleteIndex" command within the DG world. Check out the DG user guide. For my part, I usually extract the dgData or the dgText and work in the clear, restoring after massaging the data.
Craig Newman
Re: DataGrid - delete a line
Posted: Tue Aug 18, 2015 1:42 pm
by MaxV
just use (for example, if you need to delete just line number 3):
Code: Select all
send "deletelines 3" to group "DataGrid"
read
http://livecode.wikia.com/wiki/Datagrid_API for more informations