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

Can we set a user control as cell type in grid?

http://,,,

1 Reply

KB Kalaiarasan B Syncfusion Team May 24, 2012 12:54 PM UTC

Hi Natarajan,

Thank you for your interest in Syncfusion products.

  • If your intention is to embed a user control in a cell, please refer to the following sample in the dashboard.

Grid\Custom Cell Type\Drop-Down Form and User Control Demo

This demo will guide you to create a custom cell control that places a drop-down form or a user control in a cell.

  • Another option is just declare a control in the form and assign  the Control as celltype for a cell like below

          
            EditControl editControl = new EditControl();
            this.gridControl1[2, 2].CellType = GridCellTypeName.Control;
            this.gridControl1[2, 2].Control = editControl;

In this you can set your own custom control instead of EditControl and can assign it in the same way

Please let me know if this helps

Regards,

Kalai


Loader.
Live Chat Icon For mobile
Up arrow icon