从 Spark DataGrid 中删除标头
如何从 Spark DataGrid 中删除标题行? MX DataGrid 具有“showHeaders”属性,但这似乎不存在于 Spark DataGrid 中。
这看起来应该是一个非常简单的任务,所以要么我非常密集,要么只是错过了一些东西?我是否必须为我的 DataGrid 创建自定义皮肤并删除标题部分?这看起来有点矫枉过正,还是 Flex/Spark 的方式?
谢谢, 菲尔
How do you remove the header row from a Spark DataGrid? MX DataGrid had the attribute "showHeaders" but this doesn't seem to be present in the Spark DataGrid.
This seems like it should be a very easy task, so either I'm extremely dense or just missing something? Do I have to create a custom skin for my DataGrid and remove the header parts? That seems like overkill or is it the Flex / Spark way?
Thanks,
Phil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该为
DataGrid
创建自定义外观。您应该只复制标准spark.skins.spark.DataGridSkin
并删除以下行:You should create a custom skin for
DataGrid
. You should just copy standardspark.skins.spark.DataGridSkin
and remove there the following lines:一个懒惰的方法是将皮肤的标题高度设置为0:
或者设置visible/includeInLayout属性:
A lazy way is to set the skin's header height to 0:
or set the visible/includeInLayout properties: