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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How To Remove Arrow on Row Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

12578 Apr 2,2004 12:47 PM UTC Apr 2,2004 06:49 PM UTC WinForms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 2, 2004 12:47 PM UTC

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 02:58 PM UTC

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 04:31 PM UTC

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 05:13 PM UTC

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 06:49 PM UTC

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.

Warning Icon 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.Close Icon

;