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

Minimum ColWidth in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

72269 Mar 11,2008 05:24 PM UTC Mar 25,2008 10:38 AM UTC WinForms 1
loading
Tags: GridControl
AlexR
Asked On March 11, 2008 05:24 PM UTC

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 10:38 AM UTC

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.

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

;