Howdy,
I got stuck in a situation. I have completed all of my codes necessary to drag and drop from a TreeView to a DataGridView, and the code works fine. Set DataGridView AllowDrop to True, set all the necessary handlers to accommodate dragging and dropping data from a populated TreeView control ( using a directory structure ).
What I do not get is that when I put a DataGridView inside a container control, like a Panel, a Splitter, or a Tab Control Page (TabPage1), the drag and drop doesn't work. I simply see a " no drop allowed" cursor being shown.
I have my form split into 3 sections using 2 splitters ( LeftSplitter and a RightSplitter ). So in a sense, I have on the left side of a Form split into 2 sections ( the upper part being the TreeView and the lower part another control ), and the right side of the splitter I placed another splitter oriented vertically, in which I placed another RightPanel ( within the vertically-oriented splitter ) and another panel on the bottom half of the vertically-oriented RightSplitter ). Inside the RightPanel I placed a TabControl with 2 tab pages, and I placed the DataGridView inside the first tab page.
For the TreeView, it's like : LeftSplitter(Up) -> LeftPanel -> TreeView1
For the DataGridView, it's like : RightSplitter(Up) -> RightPanel(Up) -> TabControl1 -> TabPage1 -> DataGridView.
How do I go about making the drag and drop work from the TreeView in the LeftSplitter to a DataGridView in the RightSplitter in this particular situation ?
Any theoretical advise is greatly appreciated. Thanks ...