本文介绍了如何在datagridview windform C#中获取自定义值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在sql中有一个表
< br />
Sl |等级|备注< br />
1 | A | ggggggggggggggggggg< br />
2 | B | ddddddddddddddddddddd< br />
3 | C | dddddddddxxxxxxxxxx< br />
4 | D | rrrrrrvvvvvvvvvvvvv< br />
现在我的问题是通过填写datagridview1文本框中的Sl来从sql表中检索成绩。
如果我在datagridview文本框列填充2(SL)
SL |等级|备注
2 | |
然后它应该从sqltable中检索它的等级
< br />
Sl |等级|备注< br />
2 | B | ddddddddddddddddddddddddddddddddddddddddddddddddddbdbd bd bb b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b />
............................................ ......解决方案
I have one table in sql
<br /> Sl | Grade | Remark <br /> 1 | A | ggggggggggggggggggg<br /> 2 | B | ddddddddddddddddddd<br /> 3 | C | dddddddddxxxxxxxxxx<br /> 4 | D | rrrrrrvvvvvvvvvvvvv<br />
Now my question is to retrieve grade from sql table by filling Sl in datagridview1 textbox.
if I fill 2 in datagridview textbox column (SL)
SL | Grade | Remark
2 | |
then It should retrieve its grade from sqltable<br /> Sl | Grade | Remark <br /> 2 | B | ddddddddddddddddddd<br />
What I have tried:
..................................................解决方案
这篇关于如何在datagridview windform C#中获取自定义值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!