Firemonkey中的自定义网格 [英] Custom grid in firemonkey
问题描述
我们正在将当前的vcl应用程序合并到Firemonkey.当前最大的问题是创建带有一些自定义列的网格.
We are merging current vcl applications to Firemonkey. The current biggest issue is to create a tgrid with some custom columns.
我需要一个带有组合框单元格的列,以及一个在每个单元格中具有多个复选框的列.
I need a column with a combobox cells as well as a column with multiple check boxes in each cell.
推荐答案
看看我的帖子 http://monkeystyler.com/blog/entry/firemonkey-grid-basics-custom-cells-and-columns ,它解释了FireMonkey网格的基本知识以及如何创建自定义列.
Take a look at my post http://monkeystyler.com/blog/entry/firemonkey-grid-basics-custom-cells-and-columns which explains the basics of FireMonkey grids and how to create custom columns.
这是另一篇文章,该文章使用泛型为任何组件类创建列 http://monkeystyler.com/blog/entry/a-firemonkey-grid-column-for-any-control
And here's another post which uses generics to create a column for any component class http://monkeystyler.com/blog/entry/a-firemonkey-grid-column-for-any-control
使用第二种方法,使用多个复选框创建一个组件,然后创建一个使用它的列.
Using the second method, create a component with your multiple check boxes and then create a column which uses it.
这篇关于Firemonkey中的自定义网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!