How do I replace the default control of a column

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.

4 Replies

AD Administrator Syncfusion Team August 14, 2006 03:56 AM UTC

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


BL Bill Langlais August 15, 2006 12:30 AM UTC

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


AD Administrator Syncfusion Team August 16, 2006 04:07 AM UTC

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


BL Bill Langlais August 17, 2006 03:33 AM UTC

Thnaks!

WJL

Loader.
Up arrow icon