Skip to main content
Participant
February 12, 2008
Question

Datagrid multiple selection

  • February 12, 2008
  • 1 reply
  • 301 views
Hello

My client wants to have a possibility of multiple selections in a datagrid... but he wants to have them selected by a simple click instead of the "classical" ctrl click... how can I achieve that ?

Henri
This topic has been closed for replies.

1 reply

Inspiring
February 12, 2008
What you can do is use the selectedIndices property of the grid. Keep a
separate array - call it indices. When a click on the grid is made, get the
grids.selectedIndex and then add that to you indices array. Then set the
grids.selectedIndices to your indices array. Make sure you set the grids
multipleSelection property to true.


--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


henrisAuthor
Participant
February 13, 2008
Thanks Dave,

Yes this could be a solution, but then I will have to program the highlighting and the possibility to deselect by a second click. Naturally this might be what I would have to do in absence of another possibility. :-)

Henri