如何在Propertygrid中使用数据网格? [英] How to use a datagrid in a Propertygrid?

查看:75
本文介绍了如何在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! :)


这篇关于如何在Propertygrid中使用数据网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆