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 to make a column readonly in a data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

49179 Sep 12,2006 04:12 PM Sep 13,2006 12:26 AM Windows Forms 1
loading
Tags: GridControl
Charlie Mao
Asked On September 12, 2006 04:12 PM

Can someone tell me how to make a column readonly.

Administrator [Syncfusion]
Replied On September 13, 2006 12:26 AM

Hi Charlie,

For the GriddataBoundGrid, there are two different ways to do this. If you want the column nCol to be readonly, you can use code such as:


//C#
this.gridControl1.ColStyles[nCol].ReadOnly = true;
this.griddataBoundGrid1.Binder.InternalColumns[nCol-1].StyleInfo.ReadOnly = true;

//VB.NET
Me.GridControl1.ColStyles(nCol).ReadOnly = True
Me.GriddataBoundGrid1.Binder.InternalColumns(nCol-1).StyleInfo.ReadOnly = True


Let me know if you have problems with either of these items.

Thanks,
Haneef

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.

;