如何在datagridview上显示PASS或FAIL [英] How to display PASS or FAIL on the datagridview

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

问题描述

大家好!



我有一个datagridview,显示所有学生ID和学生姓名。在datagridview上,有两列指示最终成绩和备注。教师可以在最终成绩列中输入成绩。现在,我需要的是,在输入最终成绩后,教师将按下插入按钮,第四列是备注,现在将显示通过(75> = 100)或失败(低于75)。我可以添加成绩,但我不知道如何显示备注。任何人都可以帮助我吗?

Hi guys!

I have a datagridview that displays all the student ID and Student Name. On the datagridview, there are two columns that indicates the Final Grade and Remarks. The teacher can input grades into the columns Final Grade. Now, what I need is that, after inputting the final grades, the teacher will press the Insert Button and the fourth Column which is Remarks will display now Pass(75>=100) or Fail(below 75). I am able to add the grades but I do not know on how to do the displaying of Remarks. Can anyone help me?

推荐答案

请参阅我对这个问题的评论。所有你需要的是:

https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcell(v = vs.110).aspx [ ^ ],
(其他可能性:

https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcheckboxcell(v = vs.110).aspx [ ^ ],

https:/ /msdn.microsoft.com/en-us/library/system.windows.f orms.datagridviewcomboboxcell(v = vs.110).aspx [ ^ ]),

https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.value %28v = vs.110%29.aspx [ ^ ],

https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.readonly %28v = vs.110%29.aspx [ ^ ]。



是否清楚?



-SA
Please see my comment to the question. All you need is this:
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcell(v=vs.110).aspx[^],
(other possibilities:
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcheckboxcell(v=vs.110).aspx[^],
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcell(v=vs.110).aspx[^]),
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.value%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.readonly%28v=vs.110%29.aspx[^].

Is it clear?

—SA


这篇关于如何在datagridview上显示PASS或FAIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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