我如何将selectedindex值设置为datagridviewcomboboxcolumn [英] how can i set selectedindex value to datagridviewcomboboxcolumn

查看:68
本文介绍了我如何将selectedindex值设置为datagridviewcomboboxcolumn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在启动Windows应用程序

我不知道如何将数据库值绑定到datagridviewcomboboxcolumn.

有人能告诉我我该如何束缚吗?



例如:datagridviewcomboboxcolumn有2个项目1.order和2. sales
当我检索数据库值销售时,在那里该如何设置selectedindex = 2;


在此先感谢............................

hi everybody,

i am starting of the windows application

i don''t know how to bind the database value to datagridviewcomboboxcolumn.

can you any body tell me how can i bind.



ex:datagridviewcomboboxcolumn have 2 items 1.order and 2. sales
when i retrieve the db value sales is there so how can i set selectedindex=2;


thanks in advance......................

推荐答案


通过这些链接

链接#1
链接#2

go through these links

link # 1
Link # 2


这篇关于我如何将selectedindex值设置为datagridviewcomboboxcolumn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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