Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
17214 | Aug 3,2004 08:11 PM UTC | Aug 3,2004 08:46 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
public class MyGridControl : GridControl { protected override void OnSetCursor(ref Message m) { base.OnSetCursor(ref m); Point pt = this.PointToClient(Control.MousePosition); int row, col; if(this.PointToRowCol(pt, out row, out col, -1) && row == 2 && col == 2) { Cursor.Current = Cursors.Cross; } } }You can also do the by deriving GridDragSelectMouseController and overriding Cursor to provide the cursor that way. It would take a little more work than just deriving the grid.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.