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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimePicker in Grid Control

Thread ID:





6589 Aug 19,2003 09:05 AM UTC Aug 19,2003 12:37 PM UTC WinForms 1
Tags: GridControl
Asked On August 19, 2003 09:05 AM UTC

Hi I need the same functionality of the standard .Net DateTimePicker (or the Syncfusion DateTimePickerExt control) inside the cell of a grid. Is there any support for having a cell of this type in the grid? Thanks Martin

Administrator [Syncfusion]
Replied On August 19, 2003 12:37 PM UTC

There is currently no support for using this control in a cell. You would need to derive your own cell control to handle this. To get your control to handle keys like up arrow and down arrow, you would have to override ProcessKeyEventArgs. Instead of calling the baseclass (which passes things back to the grid), you need to call ProcessKeyEventArgs on the DateTimePicker control. In order to be able to do this, you have to derive the DateTimePicker and expose a public method that calls the OnProcessKeyEventArgs for the DateTimePicker. This is the technique used in the Syncfusion\Essential Suite\Grid\Samples\In Depth\GridInCells sample to allow the embedded grid in the cell handle the keystrokes.


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

Live Chat Icon For mobile
Live Chat Icon