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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

49459 Sep 19,2006 11:19 AM Sep 20,2006 01:42 AM Windows Forms 1
loading
Tags: GridControl
Vijaya Kumar Reddy
Asked On September 19, 2006 11:19 AM

Hi

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
Regards
Vijay

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

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"

Thanks,
Haneef

CONFIRMATION

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.

;