开发者

flex datagrid: how to do a multiple selection programmatically

开发者 https://www.devze.com 2022-12-23 00:55 出处:网络
I have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Pro开发者_开发技巧gramm. I\'m wondering, whether I can programmatically select some

I have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Pro开发者_开发技巧gramm. I'm wondering, whether I can programmatically select some rows depending only on code?

Thanks, Markus


You can set the selectedIndices property to an array of indexes, or the selectedItems property to an array of items.

For example:

myDataGrid.selectedIndices = [1,2,5,8];
0

精彩评论

暂无评论...
验证码 换一张
取 消