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.

can not make GDBG column read only

Thread ID:





35450 Sep 29,2005 02:33 PM Sep 30,2005 05:31 AM Windows Forms 1
Tags: GridControl
Asked On September 29, 2005 02:33 PM

Hi In my GDBG gird I am trying to make all the columns read-only by using the following code foreach(GridBoundColumn col in dgRateClass.GridBoundColumns) { col.ReadOnly = true; col.StyleInfo.BackColor = System.Drawing.Color.BurlyWood; } The first column of the grid is a check box but I can still check and uncheck it. The above code is called from a clicked event of a button. The code is changing the color but not making column read only Please Help GK

Administrator [Syncfusion]
Replied On September 30, 2005 05:31 AM

Hi Gulshan you can try with the following code to make the CheckBox column as readonly. Assuming the Colindex of the CheckBox column as 1, this.gridDataBoundGrid1.Model.ColStyles[1].ReadOnly = true; Best Regards Mouli.


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.