Solved

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

Posted on 2007-03-30
2
212 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn on intranet settings 1 56
Error on link 14 46
compare between entities in entity framework 8 72
What Does This C# Code Block Do? 5 30
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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