Solved

How can I have my datagrid control sorted on one of the column when created.  Thanks.

Posted on 2007-03-30
2
214 Views
Last Modified: 2010-04-16
I'm using vs2005 and .net 2.0.  How can I have my datagrid control sorted on one of the column when created.  Thanks.
0
Comment
Question by:lapucca
2 Comments
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 18827822
depending on how u bind ur datagrid if u have sed datatable then u can do this

dataTable1.DefaultView.Sort = "ColUWantToSort";

then that would automatically reflect the datagrid
0
 

Author Comment

by:lapucca
ID: 18827855
Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting error in connectionstring with Excel. 30 63
Dynamics CRM Plugin Query TotalRecordCount returning -1 13 56
Where is this file? 3 32
C# XML Get Values 4 33
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

680 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