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.

Expand column width beyond grid right border

Thread ID:

Created:

Updated:

Platform:

Replies:

72450 Mar 19,2008 12:18 PM Mar 27,2008 02:51 PM Windows Forms 10
loading
Tags: GridControl
Q
Asked On March 19, 2008 12:18 PM

Hi,

How to expand column width by mouse beyond grid right border?

Thanks,

Q


Administrator [Syncfusion]
Replied On March 19, 2008 04:50 PM

Hi Q,

To expand column width by mouse beyond grid right border,you can use below code snippet.

this.gridControl1.ResizeColsBehavior |= Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.AllowDragOutside;


Please let me know if you need further assistance.

Best regards,
Johnson



Q
Replied On March 20, 2008 08:29 AM

Hi Johnson,

Thanks. That works in terms of the column indeed can be expanded beyond the grid border.
However, I can not scroll the grid to see the end of the column.

Thanks,

Q


>Hi Q,

To expand column width by mouse beyond grid right border,you can use below code snippet.

this.gridControl1.ResizeColsBehavior |= Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.AllowDragOutside;


Please let me know if you need further assistance.

Best regards,
Johnson





Administrator [Syncfusion]
Replied On March 20, 2008 06:17 PM

Hi Q,

Thank you for interest in Syncfusion products.

I am afraid that I was not able to reproduce the issue. I have created a simple sample to test this issue and it is available in the following link.

http://websamples.syncfusion.com/samples/Grid.Windows/f72450/main.htm


Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Best regards,
Johnson




Q
Replied On March 22, 2008 10:13 AM

Hi Johnson,

the problem happens when the column's width expanded to be wider than the grid itself.

I guess the related issue is how to make the scroll bar scroll smoothly instead of jumping by column's width.

Thansk,

Q

>Hi Q,

Thank you for interest in Syncfusion products.

I am afraid that I was not able to reproduce the issue. I have created a simple sample to test this issue and it is available in the following link.

http://websamples.syncfusion.com/samples/Grid.Windows/f72450/main.htm


Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Best regards,
Johnson






Administrator [Syncfusion]
Replied On March 24, 2008 10:50 AM

Hi Q,

Thank you for your update.

By setting the HorizontalThumbTrack property to true, you can able to make the scroll bar scroll smoothly instead of jumping by column's width.
please try this below code and let me know if this helps.

this.gridControl1.Model.Options.HorizontalThumbTrack = true;

Best regards,
Johnson



Q
Replied On March 24, 2008 11:44 AM

Hi Johnson,

Unfortunately, it does not work.

>Hi Q,

Thank you for your update.

By setting the HorizontalThumbTrack property to true, you can able to make the scroll bar scroll smoothly instead of jumping by column's width.
please try this below code and let me know if this helps.

this.gridControl1.Model.Options.HorizontalThumbTrack = true;

Best regards,
Johnson





Administrator [Syncfusion]
Replied On March 26, 2008 10:39 AM

Hi Q,

Thank you for your update.

I tried to reproduce this problem using this sample.

http://websamples.syncfusion.com/Samples/Grid.Windows/F7245_Up/main.htm

But, I could not get this problem. Maybe I am not following the steps that you are doing. Is it possible for you to provide more information on this problem? This will help me to analyze the issue further.


Best regards,
Johnson



Q
Replied On March 27, 2008 08:13 AM

Hi Johnson,

To better see the problem, please add the following code in the form load event:
this.gridControl1.BaseStylesMap["Standard"].StyleInfo.HorizontalAlignment = GridHorizontalAlignment.Right;

then expand the Column A far beyond the grid right edge.

Now scroll the scroll bar, you will see the problem -- there is no way to show the cell text in Column A

Thanks,

Q


>Hi Q,

Thank you for your update.

I tried to reproduce this problem using this sample.

http://websamples.syncfusion.com/Samples/Grid.Windows/F7245_Up/main.htm

But, I could not get this problem. Maybe I am not following the steps that you are doing. Is it possible for you to provide more information on this problem? This will help me to analyze the issue further.


Best regards,
Johnson





Administrator [Syncfusion]
Replied On March 27, 2008 12:25 PM

Hi Q,

To avoid that issue please add the blow code in Form_Load event, Its work fine.

this.gridControl1.HScrollPixel = true;

Please let me know if this helps.

Best regards,
Johnson



Q
Replied On March 27, 2008 02:51 PM

Johnson,

Thanks. That works!

Q

>Hi Q,

To avoid that issue please add the blow code in Form_Load event, Its work fine.

this.gridControl1.HScrollPixel = true;

Please let me know if this helps.

Best regards,
Johnson





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.

;