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

GridGroupingControl Cell = "Control"

Thread ID:





46808 Jul 20,2006 11:44 PM UTC Jul 21,2006 11:22 AM UTC WinForms 1
Tags: GridControl
Asked On July 20, 2006 11:44 PM UTC

I''ve customerized DataTimePickerAdv for
column in the GridGroupingControl.
Here is part the code:

DateTimeePickerAdv dateTimePicker = new DateTimePickerAdv();
dateTimePicker.ShowDropButton = false;
dateTimePicker.ShowUpDown = true;
dateTimePicker.ShowCheckBox = false;
dateTimePicker.Format = DateTimePickerFormat.Custom;
dateTimePicker.CustomFormat = fmt;

GridTableDescriptor td = ggcControl.TableDescriptor;

GridColumnDescriptor cd = td.GetColumnDescriptor(columnName);

cd.Appearance.AnyRecordFieldCell.Format = "HH:mm";

cd.Appearance.AnyRecordFieldCell.Control = dateTimePicker;
dd.Appearance.AnyRecordFieldCell.CellType = "Control";
cd.Appearance.AnyRecordFieldCell.CellValueType = typeof(DateTime);

I found two problems (or bugs)
1) It does not poppulate the correct time value
And two row (I only two rows in the table)
always show the same values.

2) Whenever I changed one row to some other time
say 11:33 to 12:56,
the other row will automatically get updated
to the 12:56

Did you miss anything or this is a known bug.

Administrator [Syncfusion]
Replied On July 21, 2006 11:22 AM UTC

Hi Ken,

To have a DataTimePicker in the grid, a custom cell control has to be created that is derived from the GridStaticCellModel and the GridStaticCellRenderer. The custom model thus created can be added through gridGroupingControl1.TableModel.CellModels collection.
Please refer the sample link below, that demonstrates the way you could implement this with the gridgroupingcontrol.

Here is a sample

Let me know if you need any further assistance.


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