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.

How restrict Particular column resizing in GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

95336 Jul 2,2010 05:04 AM Jul 5,2010 02:45 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
BoopathiRaja
Asked On July 2, 2010 05:04 AM

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 02:45 AM

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

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.

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.

;