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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

can not make GDBG column read only

Thread ID:





35450 Sep 29,2005 06:33 PM UTC Sep 30,2005 09:31 AM UTC WinForms 1
Tags: GridControl
Asked On September 29, 2005 06:33 PM UTC

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 09:31 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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