can we use DateTimePickerAdv in gridcontrol in place of MonthCalendar

i want  datetimepickeradv like feature of AutoForwarding in gridcontrol.

i have used event CurrentCellStartEditing ​to show calendar in gridcontrol cell.

style.CellValueType = GetType(Date)

style.CellType = GridCellTypeName.MonthCalendar

 style.Format = "dd/MM/yyyy".

but this cell does not act like datetimepickeradv.....

can we have same working like datetimepickeradv in gridcontrol cell.


thanks & regards

raman kumar



5 Replies

VS Vijayarasan Sivanandham Syncfusion Team February 28, 2022 02:57 PM UTC

Hi Raman,

Currently, we are analyzing your requirement of “show calendar in gridcontrol cell like DateTimePickerAdv" We will validate and update you the details on or before March 2, 2022.  
We appreciate your patience until then. 

Regards, 
Vijayarasan S 



VS Vijayarasan Sivanandham Syncfusion Team March 2, 2022 02:12 PM UTC

Hi Raman,

We are still working on this. We will update you with further details on or before March 4, 2022.

We appreciate your patience and understanding.

Regards,
 
Vijayarasan S 



MA Mohanram Anbukkarasu Syncfusion Team March 4, 2022 01:47 PM UTC

Hi Raman, 
 
We regret to inform that it is not possible to have AutoForwarding in the GridControl cell. However, we would like tom inform that you can directly use DateTimePickerAdv in the cells of the GridControl and use its AutoForwarding support by using Control CellType in GridControl as shown in the following code example.  
 
Code example :  
 
this.gridControl1[2, 2].CellType = "Control"; 
this.gridControl1[2, 2].Control = new DateTimePickerAdv() { AutoForwarding = true, Format = DateTimePickerFormat.Short, ShowCheckBox = false }; 
 
 
Please let us know if you have any concerns in this.  
 
Regards, 
Mohanram A. 



SI singh March 7, 2022 10:54 AM UTC

i have tried this but have some issue with this so in place of this method.


i have used  DateTimeCellRenderer   (which works well but takes some time in loading)

GridControl1.CellModels.Add("DateTimePicker", New DateTimeCellModel(GridControl1.Model))

it works fine. but only one issue in it.

i am setting celltype in event CurrentCellStartEditing.

         Dim currentCell As GridCurrentCell = Me.GridControl1.CurrentCell

        Dim style As GridStyleInfo = GridControl1.Model(currentCell.RowIndex, currentCell.ColIndex)

         style.CellType = "DateTimePicker"

when i try to start edit in first row, it takes a little bit extra time to load control in first row, in another rows it works fine.




VS Vijayarasan Sivanandham Syncfusion Team March 8, 2022 01:32 PM UTC

Hi Kumar,

We are glad to know that the reported problem has been resolved at your end.

However, we are a little unclear about your reported issue. Please provide more information related to your query? 
 
  1. Code snippet related to customization of DateTimeCellModel
  2. Code snippet related to customization of GridControl
  3. Video illustration of the issue
  4. If possible, kindly provide a simple issue reproducible sample
 
Kindly revert to us with the above requested details. It will be more helpful for us to check the possibilities to resolve the reported problem. 
 
Regards, 
Vijayarasan S 


Loader.
Up arrow icon