Page 1 of 1
DataGrid Multiple lines
Posted: Fri Feb 19, 2016 8:12 pm
by dantomlin
I know how to get one line of a datagrid that is highlighted but how do I get multiple lines of data when I allow multi row highlights?
Re: DataGrid Multiple lines
Posted: Fri Feb 19, 2016 8:50 pm
by dunbarx
Hi
Does the "dgHilitedLines" do what you need? This is a comma delimited list.
Craig Newman
Re: DataGrid Multiple lines
Posted: Fri Feb 19, 2016 9:11 pm
by dantomlin
yes, that worked and then I had to do repeat process to get the id's of the highlighted lines.
thanks
Re: DataGrid Multiple lines
Posted: Fri Feb 19, 2016 9:14 pm
by dunbarx
Sure. Once you get that list, the only way to act on each line is, well, one at a time.
Craig
Re: DataGrid Multiple lines
Posted: Sat Feb 20, 2016 3:41 pm
by sritcp
dantomlin wrote:......and then I had to do repeat process to get the id's of the highlighted lines.
the dgHilitedIndexes
will give you the indexes of the highlighted lines directly.
Regards,
Sri
Re: DataGrid Multiple lines
Posted: Sat Feb 20, 2016 3:50 pm
by sritcp
dunbarx wrote:... Once you get that list, the only way to act on each line is, well, one at a time.
deleteIndex
deleteLine
RefreshIndex
RefreshLine
etc.
take a list of indexes or line numbers as argument.
Regards,
Sri