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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change celltype as Monthcalendar in GridDatacontrol dynamically

Thread ID:

Created:

Updated:

Platform:

Replies:

108598 May 1,2013 10:23 AM UTC May 7,2013 04:39 AM UTC WPF 1
loading
Tags: GridControl
Narmatha Palaniappan
Asked On May 1, 2013 10:23 AM UTC

Hi,

  I want to change a celltype as Monthcalendar dynamically in syncfusion griddatacontrol. Can u please suggest me in this.


Rajasekar G [Syncfusion]
Replied On May 7, 2013 04:39 AM UTC

Hi Narmatha,

 

Thank you for using Syncfusion products.

 

We have analyzed your query and you can achieve your requirement by using the following code snippet.

 

Code snippet[C#]:

private void Button_Click(object sender, RoutedEventArgs e)

{

    //Here Date is the VisibleColumnName

    this.SyncGrid.VisibleColumns["Date"].ColumnStyle = new GridDataColumnStyle() { CellTypeEnum = GridDataCellType.DateTimeEdit };

}

 

Please let us know if you have any questions.

 

Regards,

Rajasekar


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

;