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