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
DataGrid - delete a line
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: DataGrid - delete a line
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
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
just use (for example, if you need to delete just line number 3):
read http://livecode.wikia.com/wiki/Datagrid_API for more informations
Code: Select all
send "deletelines 3" to group "DataGrid"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w