[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

DataGrid Sort

Posted on 2009-07-13
2
Medium Priority
?
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
evidica earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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