• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

How do I get two rows to change order in a DataGredView?

I have an Up arrow and a Down arrow rigged up to change the sequence of two rows. But how do I make the change?

Using C# and WinForms.


Thanks,
newbieweb
0
newbieweb
Asked:
newbieweb
1 Solution
 
lazyberezovskyCommented:
If you do not use databinding, then DataGridView.Rows.RemoveAt and DataGridView.Rows.Insert will help you.
0
 
newbiewebSr. Software EngineerAuthor Commented:
In some case I databind, but in this case do not. Thanks!

newbieweb
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now