拖放到Flex AdvancedDataGrid上

时间:2009-09-14 20:03:03

标签: flex drag-and-drop advanceddatagrid

如何确定哪个Flex AdvancedDataGrid单元格 - 行和列索引 - 我刚刚删除? calculateDropIndex似乎给了我一行,但是如何获取该列?

1 个答案:

答案 0 :(得分:1)

这将是一个伪代码:

on drop:
 get x coordinate local to that grid when dropped
 loop over visible grid columns while adding their widths
 stop when total widths is greater than x coord

并且应该有你的专栏。

这有帮助吗?