Sort datagridview by row drag and drop?

C

Claes Wedin

Hi,
We have a DataGridView and the user wants to be able to change the order on
the rows by drag and drop.
The best would be if a thick line showed where the row will be placed when
moving over the grid (like it looks when moving things in the
start-menu...). All examples I've found is with listviews and not
datagridviews...

Anybody done this or found an example..

TIA //Claes.
 
N

Nicholas Paldino [.NET/C# MVP]

Claes,

I don't think that the DataGridView supports this out of the box. You
could try and code it yourself, but it would involve you performing a great
deal of custom painting on your part.

You are probably better off with a third-party solution in this case.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top