将鼠标悬停在行上时如何更改datagridview的行颜色? [英] How to change the line color of datagridview when mousing over the line?

查看:49
本文介绍了将鼠标悬停在行上时如何更改datagridview的行颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用WIndows Forms C#将鼠标悬停在datagridview中的行上时如何使用事件以及如何更改行的颜色?

谢谢.

I would like to know how event to use and how I can do to change the color of row when mousing over the line in datagridview with WIndows Forms C#?

Thank you.

推荐答案

http://social.msdn.microsoft.com/论坛/en-US/winformsdatacontrols/thread/284caddd-f7ac-4af1-91a4-e3712a732919 [
http://blog.csharphelper.com/2012/05/31/highlight-the-datagridview-row-that-is-under-the-mouse-in-c.aspx[^]
http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/284caddd-f7ac-4af1-91a4-e3712a732919[^]


这篇关于将鼠标悬停在行上时如何更改datagridview的行颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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