We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How To Remove Arrow on Row Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

12578 Apr 2,2004 07:47 AM Apr 2,2004 01:49 PM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 2, 2004 07:47 AM

whenever I click on a row header I get this arrow point to the right" cursor. How do I get rid of this?

Administrator [Syncfusion]
Replied On April 2, 2004 09:58 AM

You can change the CellType of the "Row Header" basestyle to Header. this.gridDataBoundGrid1.BaseStylesMap["Row Header"].StyleInfo.CellType = "Header";

Administrator [Syncfusion]
Replied On April 2, 2004 11:31 AM

Actually that Didnt work.. Also note: I get a "down arrow" cursor on the column headers as well that I do not want showing up. Basically the only cursor i want the grid to do is the sizing cursor.. everything else I want off

Administrator [Syncfusion]
Replied On April 2, 2004 12:13 PM

Hi MCRB, Just turn off the column selection in the AllowSelection property (Gridcontrol --> Properties) to see if that helps. this.gridControl1.AllowSelection = ((((((Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Row | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Table) | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Cell) | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Multiple) | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Shift) | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Keyboard) | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.AlphaBlend); Regards, Jay N

Administrator [Syncfusion]
Replied On April 2, 2004 01:49 PM

Also, to turn off the drag/drop cursor, you can use code like: this.gridControl1.ControllerOptions = GridControllerOptions.All & (~GridControllerOptions.OleDataSource); or in VB.NET Me.gridControl2.ControllerOptions = GridControllerOptions.All And Not GridControllerOptions.OleDataSource If you do not want you user to move columns/rows (whcih will sow a dragdrop cursor as well, make you you have the grid.AllowDragSelectedCOls and grid.AllowDragSelectedRows set to false.

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;