Page 1 of 1
DataGrid How To Delete A Row
Posted: Fri Mar 19, 2010 11:25 pm
by gwbasic
I just started working on datagrid. Where can I can find an example on how to delete a row in a datagrid?
Re: DataGrid How To Delete A Row
Posted: Sat Mar 20, 2010 1:43 pm
by Janschenkel
Take a look at the revLessons section for the Datagrid:
http://lessons.runrev.com/spaces/lesson ... s/datagrid
HTH,
Jan Schenkel.
Re: DataGrid How To Delete A Row
Posted: Mon Mar 22, 2010 1:11 am
by gwbasic
Yes I tried skimming through it but can't find it. I just I want to come up with something very quickly to convince my boss that Rev could be useful to us.
Re: DataGrid How To Delete A Row
Posted: Mon Mar 22, 2010 2:22 am
by sturgis
look at
http://lessons.runrev.com/spaces/lesson ... a-Grid-API specifically deleteLine. For a quick test you can type in:
Code: Select all
dispatch deleteLIne to group "yourDatagridGroup" with "1,4,5"
-- deletes rows 1, 4 and 5 of the datagrid.
Re: DataGrid How To Delete A Row
Posted: Mon Mar 22, 2010 3:05 am
by gwbasic
Thank you very much!
Re: DataGrid How To Delete A Row
Posted: Fri May 28, 2021 5:41 pm
by smelly
dispatch deleteLIne to group "source" with "1,2,3"
Does not work for me. It only deletes one line and I cannot tell which it will be. Sometimes its 1 and sometimes its 3.
Re: DataGrid How To Delete A Row
Posted: Fri May 28, 2021 6:02 pm
by Klaus
Hi smelly,
I am sure the threadstarter will have found a solution in the last 11 years!
The devil is in the detail!
To delete one
LINE use:
Code: Select all
dispatch deleteLIne to group "source" with 1
To delete more than one
LINES use:
Code: Select all
dispatch deleteLineS to group "source" with "1,2,3"
See the tiny difference?
line <> lines
Best
Klaus