如何在Propertygrid中使用数据网格?
问题描述:
我想在属性网格内创建一个数据网格,
如下:
1.属性名称相同,并且将具有多个动态行.每行将有2个按钮.一删除和一填充数据.
在datagrid中,它将是3列,一列表示值,而2列表示按钮.
I want to create a datagrid inside a property grid,
As follows:
1. Property Name is same and it will have multiple dynamic rows. Each row will have 2 buttons. One to delete & one to fill data.
In datagrid it will be 3 columns, one for value & 2 for buttons.
Is it possible to create such a datagrid inside a property grid?
答
虽然可能,但是我不知道一种直接做自己想要的方法的方法.
但是,可以有一个下拉编辑器或一个对话框来编辑属性.有关如何执行此操作的更多信息,请搜索 UITypeEditor .
此处 [
Although it may be possible, I do not know of a way to do what you want directly.
However it is possible to have a dropdown editor or a Dialog to edit properties. For more information on how to do this search for UITypeEditor.
Here[^] is the M
演练.
祝你好运! :)
Walkthrough.
Good luck! :)