datagridview组合框 [英] datagridview combobox

查看:92
本文介绍了datagridview组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#的datagridview中调用组合框和文本框?如何在datagridview内填充组合框的选定索引?有人可以帮我吗?非常紧急.

在此先感谢

解决方案

这可能对您有所帮助.
请检查以下链接
< a href ="http://www.codeproject.com/KB/miscctrl/GenericDataGridView.aspx"> http://www.codeproject.com/KB/miscctrl/GenericDataGridView.aspx</a>

sevenbell,

在datagridview的设计模式下,将comboox添加为datagridviewcomboboxcolumn.
您可以将数据源绑定为colcomboboxcolumn.datasuorce,其中colcomboboxcolumn是datagridview中组合框列的名称.

您必须使用datagridview事件从组合框中获取价值.
为此,请首先检查事件触发,并在该组合框列上不显示.

V.Vishal


How can I call comboboxes and textboxes in my datagridview in C#? How can I populate the selected index of combobox inside the datagridview? Can anybody please help me? It''s very urgent.

Thanks in advance

解决方案

It may help u.
pls check the below link
<a href="http://www.codeproject.com/KB/miscctrl/GenericDataGridView.aspx">http://www.codeproject.com/KB/miscctrl/GenericDataGridView.aspx</a>


Hi sevenbell,

Add comboox as datagridviewcomboboxcolumn in design mode in datagridview.
You can bind data source as colcomboboxcolumn.datasuorce where colcomboboxcolumn is the name of combo box column in datagridview.

You have to use datagridview event to take value from combo box.
For this first check the event fire with that combo box column on not.

V.Vishal


这篇关于datagridview组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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