GCC column Size

Hi,
How can I fix a minimum column width in a GGC ?

Thanks

Simon.


1 Reply

JJ Jisha Joy Syncfusion Team December 16, 2008 11:54 AM UTC

Hi Simon,

you can impose a minimum size criteria by handling the TableControlResizingColumns event and cancelling it if the size is too small as in this code.

void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
if (e.Inner.Reason == GridResizeCellsReason.MouseMove && e.Inner.Width < 10)
{
e.Inner.Cancel = true;
}
}


Let me know if does not meet your requirement.

Regards,
Jisha



Loader.
Up arrow icon