简体   繁体   English

一列中的不同控件 gridview,devexpress winform

[英]different controls in one column gridview, devexpress winform

How add different controls in one column GridView?如何在一列GridView中添加不同的控件? I want it to be like this.我希望它是这样的。 Without creating separate gridviews, for other controls.无需为其他控件创建单独的网格视图。 在此处输入图像描述

As far as I see, each row has its own type and the same editor should edit cells in this row.据我所知,每一行都有自己的类型,同一个编辑器应该编辑这一行中的单元格。 For this scenario, I think it's better to use the Vertical Grid instead of the Grid View.对于这种情况,我认为最好使用Vertical Grid而不是 Grid View。

If you still wish to use the Grid View, use the GridView.CustomRowCellEdit and GridView.CustomRowCellEditForEditing events to assign the required editor to a grid cell.如果您仍然希望使用网格视图,请使用GridView.CustomRowCellEditGridView.CustomRowCellEditForEditing事件将所需的编辑器分配给网格单元格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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