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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





66635 Jul 31,2007 08:20 PM UTC Jul 31,2007 09:56 PM UTC WinForms 1
Tags: Grouping
Asked On July 31, 2007 08:20 PM UTC

Is there a way to draw 'x's in a similar fashion to the the redarrowindicator when dragging is disabled for a column?

haneefm [Syncfusion]
Replied On July 31, 2007 09:56 PM UTC

Hi Zach,

You can do this by hanlding the TableControlMouseDown event of the grid and draw the image("X") using the DragWindow class. Below is a code snippet that show this task.

private Syncfusion.Windows.Forms.DragWindow dragWindow;
private bool IsDiableColumnDrag = false;

void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
Element el = e.TableControl.PointToNestedDisplayElement(e.Inner.Location);
if (el.Kind == DisplayElementKind.ColumnHeader)
IsDiableColumnDrag = true;
dragWindow = new Syncfusion.Windows.Forms.DragWindow();
dragWindow.Opacity = .5f;
dragWindow.DragBitmap = SystemIcons.Hand.ToBitmap();


Please refer to the attached sample for implementation and let me know if this helps.

Best regards,


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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