GridView帮助 [英] GridView Help

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

问题描述

我正在开发一种考勤管理系统(台式机),

在此系统中,我使用的是datagridview控件,该控件显示检查inn的员工的日常出勤情况

我想给datagridview这样的功能:

如果有员工迟到(例如上午9点以后)并检查旅馆,则他的输入将在datagridview中以红色突出显示

有人可以给出其代码吗?

I am developing an attendance management system(desktop),

In this system i am using a datagridview control which shows the daily attendance of the employees who checks inn

I want to give such feature to datagridview:

if any employee comes late(for eg after 9 A.M) and checks inn,his entry will highlight in red color in datagridview

Can some one will give its code

推荐答案

使网格中的任何状态或基于行值绑定事件中的单元格值保持不变data
bring any status in grid or based on cell values campare in rowdatabound event keep colors


选择何时/如何引发事件,检查语句中的单元格值,如果为true,则将单元格设置为前色或后色(请确保不安静
您想要的)颜色为红色.
Choose when/how to raise the event, check the cellvalue in a statement and if true then set the cells forecolor or backcolor (not quiet sure
what you want here) to color.red.


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

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