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.
Syncfusion Feedback

How restrict Particular column resizing in GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

95337 Jul 2,2010 09:21 AM UTC Jul 7,2010 09:11 AM UTC Windows Forms 3
loading
Tags: GridControl
BoopathiRaja
Asked On July 2, 2010 09:21 AM UTC

Dear Friends,

I am using sync fusion grid control in the winform. In this i am not able to find the already available Feauture, i think so.

Assume that grid control having 5 columns, in this i have to give restriction to resize for 5th column. but in this, other four columns should be resizable. how can i achieve this?.i hope you guys will guide me.

With Thanks & Regards,
Boopathiraja.N

Jisha Joy [Syncfusion]
Replied On July 5, 2010 06:45 AM UTC

Hi Boopathiraja,

Thank you for using Syncfusion products.

You could prevent resizing of the particular column by handling the ResizingColumns event, See the code:

this.gridControl1.ResizingColumns += new GridResizingColumnsEventHandler(gridControl1_ResizingColumns);

void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
if (e.Columns.Right == 5)
e.Cancel = true;
}


Regards,
Jisha

BoopathiRaja
Replied On July 6, 2010 05:31 AM UTC

Thank you Jisha.It is working fine.

Rajadurai C [Syncfusion]
Replied On July 7, 2010 09:11 AM UTC

Hi Boopathiraja,

Thanks for your update.

Regards,
Rajadurai

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

;