| | |
| | | return; |
| | | if (info.Column.Caption == "名称") |
| | | { |
| | | Cursor.Current = Cursors.Hand; |
| | | Cursor.Current = Cursors.Help; |
| | | } |
| | | else |
| | | { |
| | | // 如果鼠标不在 "name" 列标题上,恢复默认光标样式(如果需要) |
| | | //Cursor.Current = Cursors.Default; |
| | | } |
| | | } |
| | | |
| | | private void layoutView1_MouseEnter(object sender, EventArgs e) |
| | | { |
| | | var info = layoutView1.CalcHitInfo(Cursor.Position.X, Cursor.Position.Y); |
| | | if (info.Column != null && info.Column.Caption == "名称") |
| | | { |
| | | Cursor.Current = Cursors.Help; |
| | | } |
| | | } |
| | | |
| | | private void layoutView1_MouseLeave(object sender, EventArgs e) |
| | | { |
| | | Cursor.Current = Cursors.Default; |
| | | } |
| | | } |
| | | } |