需要再gridcontrol的行里面根据值显示不同的图片,需要在column中添加ColumnEdit为imagecomboboxedit。
然后为这个imagecomboboxedit添加imagelist,imagelist里面就是需要显示的图片。
并为不同imageindex的图片设置不同的value。
为这个column绑定数据集的字段
比如这个imagelist里面有2个图片,一个亮星星,一个暗星星,分别对应的true和false。
最后数据查询出来的效果如下:
需要再gridcontrol的行里面根据值显示不同的图片,需要在column中添加ColumnEdit为imagecomboboxedit。
然后为这个imagecomboboxedit添加imagelist,imagelist里面就是需要显示的图片。
并为不同imageindex的图片设置不同的value。
为这个column绑定数据集的字段
比如这个imagelist里面有2个图片,一个亮星星,一个暗星星,分别对应的true和false。
最后数据查询出来的效果如下: