C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Tips » Web Development »

Sort DataGridView in Run Time


Posted Date: 24 Oct 2009    Resource Type: Tips    Category: Web Development
Author: santoshMember Level: Silver    
Rating: 1 out of 5Points: 4



Below Code Will Helpful to Sort DataGridView at Run Time.
 
Dim MyDataView As New DataView
MyDataView = ds.Tables(0).DefaultView 'ds is dataset u need to bind first
MyDataView.Sort = "SortColumnName"
'SortColumnName is the name of the columnName of DataGridView you want to
Sort.
DGVFindList.DataSource = MyDataView 'DGVFindList is GridView Name

Regards
Santosh



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Sort DataGridView  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Attach Files to mail using C#
Previous Resource: Dynamically add or delete a row when inputting data
Return to Discussion Resource Index
Post New Resource
Category: Web Development


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use