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

Change celltype as Monthcalendar in GridDatacontrol dynamically

Hi,

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


1 Reply

RG Rajasekar G Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon