[英]How to add controls to a GridControl in devexpress?
How to add controls(like image,button etc) to a GridControl in devexpress?如何在 devexpress 中向 GridControl 添加控件(如图像、按钮等)?
Those controls are called Repository Items.这些控件称为存储库项。 You can add them via GridControl Designer And assign particular Repository Item to column you want.
您可以通过 GridControl Designer 添加它们并将特定的存储库项分配给您想要的列。
If you mean ASP.NET ASPxGridView, there are two different solutions:如果你的意思是 ASP.NET ASPxGridView,有两种不同的解决方案:
1) you can use different ASPxGridView columns kinds as it is explained in the Data Columns topic. 1) 您可以使用不同的 ASPxGridView 列类型,如数据列主题中所述。 However, generally, this only affects data representation when a certain data row is being edited.
但是,一般来说,这只会在编辑某个数据行时影响数据表示。 In this case, different editors are used for different columns.
在这种情况下,不同的编辑器用于不同的列。
2) since this is an ASP.NET grid, it allows a developer to use Templates . 2) 由于这是一个 ASP.NET 网格,它允许开发人员使用Templates 。 This is a very powerful approach which allows you to change the grid's lookandfeel significantly.
这是一种非常强大的方法,可让您显着更改网格的外观。 Please take a look at the ASPxGridView demos and click the "Templates" command in the navigation panel.
请查看ASPxGridView 演示并单击导航面板中的“模板”命令。 You will see some examples of how templates can be used in the ASPxGridView.
您将看到一些如何在 ASPxGridView 中使用模板的示例。
If you install devexpress
you can also see Demo-Center
for example.如果您安装
devexpress
,您还可以看到Demo-Center
例如。 (also online demo ) (也是在线演示)
look for Grid-Columns
寻找网格列
In Asp you got these:在Asp中你得到了这些:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.