Flex datagrid: how to make multiple selections programmatically

I have a datagrid on which I want to select several rows with a different user interaction than the one intended for the program. I am wondering if I can programmatically select some lines depending on the code?

Thanks Marcus

+4
source share
1 answer

You can set the selectedIndices property to an array of indices or the selectedItems property to an array of elements.

For instance:

myDataGrid.selectedIndices = [1,2,5,8]; 
+3
source

Source: https://habr.com/ru/post/1304381/


All Articles