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. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon