Question

I'm trying to implement drag/drop support to a propertygrid in C# using VS2005 (.NET 2.0). The propertygrid can handle the dragenter etc. events, but there doesn't seem to be a way to get the griditem under the pointer during a drag event. The best I've been able to get so far is to use the selectedgriditem property to retrieve a custom propertydescriptor and set the value, but this requires a grid item to already be selected before starting the drag/drop operation.

Has anyone had any luck with implementing this?

Thanks :-)

Was it helpful?

Solution

If you don't get any joy, you could try SmartPropertyGrid; I have no idea whether it'll work, but it perhaps worth a look. You might even have more joy as a "feature request" from a 3rd-party, since the MS version is pretty-much sealed now that WPF has taken over.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top