Minimum ColWidth in GGC

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


1 Reply

AD Administrator Syncfusion Team 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


Loader.
Up arrow icon