New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
TextBox box = new TextBox();
box.Visible = false;
box.Multiline = true;
box.Text = "Some random text here...";
box.BorderStyle = BorderStyle.None;
gridControl1.RowHeights[2] = 30;
gridControl1.ColWidths[2] = 200;
gridControl1[2,2].CellType = "Control";
gridControl1[2,2].Control = box;
this.Controls.Add(box);
To support special drag&drop between the cells will take more coding. Here is a Windows Forms kb link that shows how to derive a listbox that support D&D.
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c87c.aspx#q610q
You could try using such a listbox. This would allow you to initiate the D&D from your active cell control. You could then try catching the drop in the grid''s DragDrop event, and putting it in the proper position in your target list cell.
If you have many cells that you want to behave this way, then you woul dlikely be better off deriving a custom celltype to contain your D&D ListBox (or whatever control you choose). There are samples of deriving such custom cell types in the \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\CellTypes folder. See the CalendarCells or the SliderCells samples.
If you want to use a GridControl as the list in the cell, the \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\In Depth\GridInCells sample shows how this can be done.