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

Read only grouping grid?

Thread ID:





92788 Feb 4,2010 08:47 AM UTC Feb 5,2010 11:42 AM UTC WinForms 3
Tags: GridControl
Asked On February 4, 2010 08:47 AM UTC

We're evaluating the Grouping Grid control, and have a question. I have the TableDescriptor.AllowEdit property set to false. However, when I click in a cell, it doesn't look readonly, there's a cursor but you can't change the values. Is there a way to make it look readonly too? And about the same question about a date-field. Even with AllowEdit set to false, I still see the dropdown button for the calendar, I can open the calendar, but I can't change the value. Is there a way to not show the dropdown button at all for date fields? Thanks!

Lingaraj S [Syncfusion]
Replied On February 4, 2010 09:30 AM UTC


Thank you for your interest in Syncfusion products.

Also please try using Enable and ShowButtons property in GridTableCellStyleInfo to achieve your requirement as shown below.

this.gridGroupingControl1.TableDescriptor.AllowEdit = false;
this.gridGroupingControl1.TableDescriptor.AllowNew = false;
this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.ShowButtons = Syncfusion.Windows.Forms.Grid.GridShowButtons.Hide;
this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Enabled = false;

Refer the sample from below link.

Please let me know if you have any queries.

Lingaraj S.

Replied On February 4, 2010 11:11 AM UTC

Thank you, that seems to do the trick! There are so many properties, it's difficult to find the ones you are looking for :-)

Lingaraj S [Syncfusion]
Replied On February 5, 2010 11:42 AM UTC


Thank you for the update.

Sorry for the delay. The Enable property is enough to achieve the ReadOnly GridGroupingControl UI. The AllowEdit property is used to avoid the underlying datasource change. The ShowButtons property is used to hide the button, also the Enable property is not allow to click the Button in GridGroupingControl cell.

Please let me know if you have any queries.

Lingaraj S.


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

or the page will be automatically redirected to 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