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.
Up arrow icon