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.

Column Disapper while dragging

Thread ID:

Created:

Updated:

Platform:

Replies:

65195 Jul 25,2007 07:50 AM Jul 27,2007 12:09 PM Windows Forms 3
loading
Tags: GridControl
Gourav Nayyar
Asked On July 25, 2007 07:50 AM

Hi i'm using GridDataBoundGrid in my application and i faced a problem that when i dragged any column of my grid to the end of the grid it disapper and it did'nt come again untill i'll close the form and again open it. Please suggest me in solving this Problem. As soon as Possible b'cs i need that very urgent.

Thanks in Advance

haneefm [Syncfusion]
Replied On July 25, 2007 05:52 PM

Hi Gourav,

I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in browser sample with Essentail studio V.4.x/5.x. But i was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

Gourav Nayyar
Replied On July 27, 2007 06:52 AM

hi Haneef
i am sending you the sample document just check it. my problem is that when we drag any column to the Last of the Column it disapper and come a blank column . pl'z solve this problem as soon as possible.
you have to drag next to the Last column

Thanks in advance
Gourav

>Hi Gourav,

I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in browser sample with Essentail studio V.4.x/5.x. But i was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

GridSample5.zip

Rajagopal [Syncfusion]
Replied On July 27, 2007 12:09 PM

Hi Gourav,

Thanks for your patience.

You could resolve this problem by handling the QueryAllowDragColumnHeader event of the GridDataBoundGrid. Also, set the ResizeColsBehavior to AllowDragOutside, to enable dragging the column separator beyond the parent container. Please try the code below.

// Form_Load
this.gridDataBoundGrid1.ControllerOptions |= GridControllerOptions.DragColumnHeader;
this.gridDataBoundGrid1.ResizeColsBehavior = GridResizeCellsBehavior.AllowDragOutside;

// QueryAllowDragColumnHeader event

void gridDataBoundGrid1_QueryAllowDragColumnHeader(object sender, GridQueryDragColumnHeaderEventArgs e)
{
if (e.Reason == GridQueryDragColumnHeaderReason.MouseUp)
{
if (e.InsertBeforeColumn > this.gridDataBoundGrid1.Model.ColCount)
{
e.AllowDrag = false;
e.Grid.Model.Cols.MoveRange(e.Column, this.gridDataBoundGrid1.Model.ColCount);
}
}
}

Let me know if this helps.

Have a nice time.
Regards,
Rajagopal

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.

;