如何在datagridview中更改文本 [英] How to change the text in datagridview

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

问题描述


我有一个comboBox1和一个dataGridView1
在组合框中有两个项目"Receiverd","issue"
datagridview中有两列

当用户从组合框中选择已接收"时,我想在数据网格的第1行和第2列中显示"r".


我该怎么办?
请帮帮我.

Hi,
I have a comboBox1, and a dataGridView1
in combo box there are two item "Receiverd","issue"
and two column are there in datagridview

i want to display the "r" in row1 and column2 of the datagrid when user select "received" from combo box.


how can i do this?
please help out me.

推荐答案

HI PRINCE

如果要从数据库加载数据网格结果.您必须通过使用Key值来填充数据网格.

希望对您有帮助.

Rgds
贾加德什(Jagadesh)
HI PRINCE

If you are loading the datagrid result from the database. You have to fill the datagrid by using the Key value.

Hope this will help you.

Rgds
Jagadesh


这篇关于如何在datagridview中更改文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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