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

Adding DateTimePicker to GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

107020 Feb 7,2013 02:46 PM UTC Feb 8,2013 09:32 AM UTC Windows Forms 1
loading
Tags: GridControl
Gaukhar Massabayeva
Asked On February 7, 2013 02:46 PM UTC

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

Vinish Kumar K [Syncfusion]
Replied On 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

CONFIRMATION

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.

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

;