Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# PropertyGrid drag drop

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 :-)

like image 956
user109072 Avatar asked Feb 06 '26 14:02

user109072


1 Answers

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.

like image 104
Marc Gravell Avatar answered Feb 08 '26 04:02

Marc Gravell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!