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

GGC grid cell style

Thread ID:





91869 Dec 7,2009 10:43 PM UTC Dec 10,2009 03:13 AM UTC WinForms 3
Tags: GridControl
Mike Mann
Asked On December 7, 2009 10:43 PM UTC

Is there a way to prevent clicking into cells to allow editing. By setting the ReadOnly property you can successfully prevent the user from editing the actual values, but you can still have a cursor displayed in the cell and highlight the text. In addition, the cell's background is not the current selection color for the rest of the row.

It appears I can get the desired functionality in the QueryCellStyleInfo event handler by setting the style to "Static". Can i achieve this functionality without setting this in the QueryCellStyleInfo event handler? I have tried setting grid.Appearance.RecordFieldCell.CellType = "Static", but it looks like this is getting reset when the grid loads.

FYI, I have AllowSection = None and am using ListBoxSelectionMode.

Rajadurai C [Syncfusion]
Replied On December 9, 2009 01:39 PM UTC

Hi Mike,

Thanks for your interest in Syncfusion Products.

To set the "Static" for all the cells in GridGroupingControl, you can make use of the following setting.

this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.CellType = "Static";

To highlight the currentcell with same backcolor as that of other cells in that record, you can make use of the following setting.

this.gridGroupingControl1.TableOptions.ListBoxSelectionCurrentCellOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionCurrentCellOptions.None;


Mike Mann
Replied On December 9, 2009 03:45 PM UTC

This solved my issue.


Rajadurai C [Syncfusion]
Replied On December 10, 2009 03:13 AM UTC

Hi Mike,

Thanks for your update.

Thank you for using Syncfusion Products.



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