BoldDeskBoldDesk is now live on Product Hunt with a special offer: 50% off all plans. Let's grow together! Support us.
this.gridControl1[2,2].CellType = "Control";
this.gridControl1[2,2].Control = this.monthCalendarAdv1;
But if you want to use more than 1 or 2 of these, you should derive your own cell control. Take a look at this sample, 2.0.5.1\Grid\Samples\CellTypes\CalendarCells. It uses a MonthCalendar, but I think you should be able to do something similar with a derived class.
public class MyMonthCalendarAdv : MonthCalendarAdv { protected override void InitializeGrid(ref Syncfusion.Windows.Forms.Grid.GridControlBase grid) { base.InitializeGrid(ref grid); grid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(grid_QueryCellInfo); } Button b = new Button(); private void grid_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.ColIndex == 3 && e.RowIndex == 2) { e.Style.CellType = "Control"; e.Style.Control = b; } } }