Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm trying to make it possible to drag & drop reorder items in a listview by groups, and I have one problem;

 

Is there any way to determine which group is under the cursor in a ListView control? Just like GetItemAt for items, only for groups? I've searched the net but couldn't find anything :confused:

 

When I drop items I get the group from the item it dropped upon, but when there's a empty group, I need to be able to get the header from that group or anything to determine which group it shall be placed in 0.o..

 

Any help is appreciated! :)

 

Cheers

Posted

I figured out a quick and easy solution, just found the closest item below the drop location, if any, and got the group from it. It works nice now:]

 

Though if anyone got a better method, please post ^^

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...