在WINFORM中,当鼠标移动到DATAGRID中的某列上,如何让鼠标变成小手形?也就是WEB程序中的超链接样式
如题,谢谢!
[解决办法]
你可以设计DataGrid的光标属性啊
属性:Cursor
[解决办法]
类似这样吧,这是webform的用法
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#F0F0F0';this.style.cursor='hand';"); } }