Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0
Hi!!!
I have a dataGridView control in my Windows Form Application, in which some columns are available.There is a column viz; 'Month' this is the first column which is already sorted alphabetically(April, August,December etc), I want to sort it on monthly basis(January, February, March etc). I am developing it by using C# and SQL Server 2005. Please help me
Posted 11-Feb-13 7:04am
Comments
José Amílcar Ferreira Casimiro at 11-Feb-13 16:57pm
   
You need to use a month number column to sort your data select statement and don't add this column to your dataGridView control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 325
1 Sergey Alexandrovich Kryukov 249
2 OriginalGriff 230
3 George Jonsson 130
4 ChauhanAjay 104
0 OriginalGriff 6,464
1 Sergey Alexandrovich Kryukov 5,915
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100