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

Custom Control In a Cell

Hello, in the WinForms grid I was able to place any control in a cell.

MyControl myControl = new MyControl();
GridControl1[1,1].CellType = "Control";
GridControl1[1,1].Control = myControl ;

The Control method does not exist in the WPF version.
How would I do this in the WPF version?

Thanks
Scott


2 Replies

AD Administrator Syncfusion Team October 28, 2010 11:48 AM UTC

Hi Scott,

In WPF you can use the Custom Cell render to load your custom control on the cell.

Please find a sample for Custom Cell render in the following location.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=AddingControlToGrid_73475-1067631803.zip

Thanks,
Sridharan S.





SE Scott E. Michetti November 3, 2010 02:36 PM UTC

Thanks. That helped. Is there a way to use MVVM for controls in a cell? I'd like to be able to bind to controls in cells.

Thanks


Loader.
Live Chat Icon For mobile
Up arrow icon