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

How to avoid Checkbox and DateTime Picker in GridGroupingControl when the Data is Readonly

Thread ID:





49459 Sep 19,2006 03:19 PM UTC Sep 20,2006 05:42 AM UTC WinForms 1
Tags: GridControl
Vijaya Kumar Reddy
Asked On September 19, 2006 03:19 PM UTC


We recently upgraded from 3.2.0 to 4.2 version of Sysnfusion GridGroupingControl. In the datasouce we have columns of type boolean and DateTime and my data is readonly. When we display the data in the new version(4.2), the GridGoupingControl is displaying a checkbox for boolean type column and DateTimePicker for DateTime type column. The earlier version of grid is not displyaing the checkbox and datatimepicker.

Please let us know how to avoid the Checkbox and Datetime picker controls in the GridGroupingControl and to display my data in raedonly mode in the new version of control.

Thaks for the help

Administrator [Syncfusion]
Replied On September 20, 2006 05:42 AM UTC

Hi Vijaya,

This is by Design. Use the below code snippet to change the celltype of the Boolean/DataTime type column in a grid.

//For Main Table
//TextBox for normal...//Static for readonly..
this.grid.TableDescriptor.Columns["BooleanColName"].Appearance.AnyRecordFieldCell.CellType = "TextBox"; //="Static"
this.grid.TableDescriptor.Columns["dateColName"].Appearance.AnyRecordFieldCell.CellType = "TextBox"; //="Static"

//For any table....
GridTableDescriptor gd = this.grid.GetTableDescriptor("MyTable"); //Code
gd.Columns["BooleanColName"].Appearance.AnyRecordFieldCell.CellType = "TextBox";//="Static"
gd.Columns["dateColName"].Appearance.AnyRecordFieldCell.CellType = "TextBox"; //="Static"



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