Solved

DataGrid Sort

Posted on 2009-07-13
2
330 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
ID: 24842598
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
ID: 24846755
Thanks a lot it worked
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
detecting  the added row index in a datagridview 3 70
What is "public object" in C#? 3 45
Video Player 11 23
converto datetime always changes format 9 35
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

813 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

18 Experts available now in Live!

Get 1:1 Help Now