如何增加flex中dataGrid的行空间(水平空间)
我想增加 Flex 中 DataGrid 中的行空间(水平空间),
不,我想要每行之间的水平空间。 例如。
dataGrid Header -- ID Name
1st row -- 01 A
Horizontal Space--
2nd row -- 02 B
Horizontal Space--
3rd row -- 03 C
像这样。我想增加这个水平空间
I want to increase the row space(Horizontal space) in DataGrid in flex
no i want horizontal space between every row.
eg.
dataGrid Header -- ID Name
1st row -- 01 A
Horizontal Space--
2nd row -- 02 B
Horizontal Space--
3rd row -- 03 C
Like this. I want to increase this horizontal space
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要设置要设置特定大小的列的宽度。在下面示例的第一列中,我将列宽设置为 100 像素宽。
这个例子取自实时文档。
You need to set the width of the column you want to set a specific size to. In the first column in the example below I am setting the column width to be 100px wide.
This example is taken from the live docs.
只需将 itemRenderer 添加到使用 x 填充的列即可。
IE
Just add a itemRenderer to the column that uses a padding of x.
i.e.