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 do I replace the default control of a column

Thread ID:

Created:

Updated:

Platform:

Replies:

47817 Aug 13,2006 12:25 PM Aug 16,2006 11:33 PM Windows Forms 4
loading
Tags: GridControl
Bill Langlais
Asked On August 13, 2006 12:25 PM

I have a column of DateTime values that I want to display as strings and without the calander control. How do I replace this control with a standard text box.

Administrator [Syncfusion]
Replied On August 13, 2006 11:56 PM

Hi Bill,

Please try this code snippet to change the CellType of the Column. Here is a code snippet

this.gridDataBoundGrid1.Binder.InternalColumns["ColumnName"].StyleInfo.CellType = "TextBox";

Let me know if this helps.
Best Regards,
Haneef

Bill Langlais
Replied On August 14, 2006 08:30 PM

Sorry, I should have mentioned I amd using a grid grouping control. It does not apear to have the same class structure.

Administrator [Syncfusion]
Replied On August 16, 2006 12:07 AM

Hi Bill,

Please use this code snippet to change the CellType of the Column. Here is a code snippet

this.gridGroupingControl1.TableDescriptor.Columns["ColumnName"].Appearance.AnyRecordFieldCell = "TextBox";


Best Regards,
Haneef

Bill Langlais
Replied On August 16, 2006 11:33 PM

Thnaks!

WJL

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.

;