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.

Minimum ColWidth in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

72269 Mar 11,2008 01:24 PM Mar 25,2008 06:38 AM Windows Forms 1
loading
Tags: GridControl
AlexR
Asked On March 11, 2008 01:24 PM

Hello,

In GGC:
1) How to set minimum columns width?
(I want preventing columns from hiding when user resize them and size is about zero)
2) How to set horizontal pixel scrolling.
In GDBG there is property HScrollPixel, and there isn't any like property in GGC

Thank You


Administrator [Syncfusion]
Replied On March 25, 2008 06:38 AM

Hi AlexR,

Sorry for the delay in responding.

1.Preventing columns from hiding when user resize them:

You can use the below code snippet to preventing columns from hiding when resize them.


[C#]
void TableControl_ResizingColumns(object sender, Syncfusion.Windows.Forms.Grid.GridResizingColumnsEventArgs e)
{
{
if (e.Columns.Contains(GridRangeInfo.Col(0)))
e.Cancel = true;
}


How to set horizontal pixel scrolling?

You can set the horizontal pixel scrolling by using the following code snippet:


[C#]
this.gridGroupingControl1.TableControl.HScrollPixel = true;



Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com//samples/Grid.Windows/72269/main.htm

Please try this and let me know if this helps.

Regards,
G.Yavana


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.

;