简体   繁体   中英

How to add controls to a GridControl in devexpress?

How to add controls(like image,button etc) to a GridControl in devexpress?

Those controls are called Repository Items. You can add them via GridControl Designer And assign particular Repository Item to column you want.

在此处输入图像描述

If you mean ASP.NET ASPxGridView, there are two different solutions:

1) you can use different ASPxGridView columns kinds as it is explained in the Data Columns topic. 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 . 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. You will see some examples of how templates can be used in the ASPxGridView.

If you install devexpress you can also see Demo-Center for example. (also online demo )

look for Grid-Columns

In Asp you got these:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM