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

Custom Control In a Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

97022 Oct 20,2010 06:06 PM UTC Nov 3,2010 02:36 PM UTC WPF 2
loading
Tags: GridControl
Scott E. Michetti
Asked On October 20, 2010 06:06 PM UTC

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


Administrator [Syncfusion]
Replied On 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.




Scott E. Michetti
Replied On 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


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

;