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. Image for the cookie policy date
close icon

Adding DateTimePicker to GridGroupingControl

Hi,
 
I was hoping someone could help me learn how to add DateTimePicker CellType.
 
Thank you

1 Reply

VK Vinish Kumar K Syncfusion Team February 8, 2013 09:32 AM UTC

Hi Gaukhar Massabayeva,

 

Thank you for your interested in Syncfusion products,

 

Query

DateTimePickerCell in Grid.

You can able to set the datetimepicker cell  in GGC by querycellInfor event. Set the cell type as datetimecell this will helps you to handle DateTime selection in GGC. Please refer the following code.

 

void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)

        {

            if (e.TableCellIdentity.Column != null && e.TableCellIdentity.Column.Name == "ExpiryDate")

            {

                e.Style.CellType = "DateTimeCell";

                e.Style.CellValueType = typeof(DateTime);

                e.Style.Format = "dd/MM/yyyy mm:hh";

            }

        }

 

 

http://www.syncfusion.com/support/forums/grid-windows/39328

 

Please refer the above forum link also about this cell type. We have implement this in attached Sample file please refer this for your better experience.

 

Please let me know if you have further concerns.

Regards,

Vinish.



GGC_DateTimePicker_77c5c89d.rar

Loader.
Live Chat Icon For mobile
Up arrow icon