Home Forums WinForms controls Xceed Grid for WinForms dateTimePicker Reply To: dateTimePicker

User (Old forums)
Member
Post count: 23064

Hi,

Thanks for the response.

Can you please do a favour to me?

i.e., As per your instructions i created datetimepicker in rich cell editor functionality as below

Dim dataRow As DataRow

dataRow = GridControl1.DataRows.AddNew()

Dim dtpEditor As New DateTimePicker

dtpEditor.Format = DateTimePickerFormat.Custom

dtpEditor.ShowCheckBox =

True

Dim dtpViewer As New DateTimePicker

dtpViewer.Format = DateTimePickerFormat.Custom

dtpEditor.CustomFormat =

“MM/dd/yy hh:mm:ss tt”

dtpViewer.CustomFormat =

“MM/dd/yy hh:mm:ss tt”

Dim dateEditor As New DateEditor()

Dim dateEditor1 As New CellEditorManager(dtpEditor, “Value”, True, True)

Dim dateViewer1 As New CellViewerManager(dtpViewer, “Value”)

dataRow.Cells(

“Value”).CellEditorManager = dateEditor1

dataRow.Cells(

“Value”).CellViewerManager = dateViewer1

dataRow.Cells(

“Value”).Value = DateTime.Now

dataRow.Cells(

“Parameter”).Value = “datetimenow”

dataRow.EndEdit()

It is working fine, b

ut in the xceed’s DateEditor control functionality, xceed team implemented two more buttons(“Today” and “None”) and respective functionality in their DateEditor control.

 Now i need to implement this same functionality in my datetimepicker control.

Please advise me on this,  Thanks in advance.

Imported from legacy forums. Posted by pravi (had 1419 views)