如何显示“ - 选择 - ”在combobox的索引0处,它位于datagridview内部 [英] How to display "--Select--" at index 0 of combobox, which is inside of datagridview

查看:104
本文介绍了如何显示“ - 选择 - ”在combobox的索引0处,它位于datagridview内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在组合框的索引0处显示

How to display

"--Select--"

,它位于c#.net的datagridview内。在windows中,我使用代码在datagridview中创建了combobox。

at index 0 of combobox, which is inside of datagridview in c#.net. In windows, I have created combobox in datagridview using code.

推荐答案

因此,将它添加到列表中。如果列表是数据绑定的,你需要将它添加到数据源,你不能数据绑定并添加额外的项目
So, add it to your list. If the list is data bound, you need to add it to the data source, you can''t data bind and add extra items


这篇关于如何显示“ - 选择 - ”在combobox的索引0处,它位于datagridview内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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