Solved

DataGrid Sort

Posted on 2009-07-13
2
329 Views
Last Modified: 2012-05-07
I have a datagrid with many rows. Need to sort all the rows of the grid except the first row. I'm using the Sort method of the datagrid.

How to sort all the rows of the datagrid except the first row?
Please help me....
Thanks in advance
dgvReport.Sort(dgvReport.Columns[2], ListSortDirection.Ascending);

Open in new window

0
Comment
Question by:nandithaa
2 Comments
 
LVL 1

Accepted Solution

by:
evidica earned 50 total points
Comment Utility
you could remove the row by storing it in a DataGridRow Object then remove it from the DataGrid, sort it, then insert the DataGridRow back in at 0.
0
 
LVL 6

Author Comment

by:nandithaa
Comment Utility
Thanks a lot it worked
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now