Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: MSTest Pin
dan!sh 10-May-11 21:48
professional dan!sh 10-May-11 21:48 
AnswerRe: MSTest Pin
Dalek Dave18-May-11 12:17
professionalDalek Dave18-May-11 12:17 
QuestionAdding service to c# windows application Pin
sarang_k10-May-11 19:12
sarang_k10-May-11 19:12 
AnswerRe: Adding service to c# windows application Pin
dan!sh 10-May-11 19:20
professional dan!sh 10-May-11 19:20 
GeneralRe: Adding service to c# windows application Pin
sarang_k10-May-11 19:22
sarang_k10-May-11 19:22 
GeneralRe: Adding service to c# windows application Pin
dan!sh 10-May-11 21:54
professional dan!sh 10-May-11 21:54 
GeneralRe: Adding service to c# windows application Pin
Joshi, Rushikesh11-May-11 3:17
professionalJoshi, Rushikesh11-May-11 3:17 
QuestionDataGridView Sorting in windows Pin
siva45510-May-11 17:03
siva45510-May-11 17:03 
hi,
I have used the below code on datagridview1_ColumnHeaderMouseClick

foreach (DataGridViewColumn x in datagridview1.Columns)
{
x.SortMode = DataGridViewColumnSortMode.Automatic;
x.Selected = true;
}
sorting is not happening ...

even i have tried...
private int Order=-1;

the below code is inside datagridview1_ColumnHeaderMouseClick

Collapse | Copy Code
ListSortDirection sortDirection;
if (this.datagridview1.SortedColumn.Name == "Number")
{
if (this.Order == -1)
{
sortDirection = ListSortDirection.Descending;
datagridview1.Sort(datagridview1.Columns["Number"], sortDirection);
datagridview1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = System.Windows.Forms.SortOrder.Descending;
this.Order = 1;
}
else
{
sortDirection = ListSortDirection.Ascending;
datagridview1.Sort(datagridview1.Columns["Number"], sortDirection);
datagridview1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = System.Windows.Forms.SortOrder.Ascending;
this.Order = -1;
}
}
even the above code is not working....
please help me regarding the same....
AnswerRe: DataGridView Sorting in windows [modified] Pin
Luc Pattyn10-May-11 17:11
sitebuilderLuc Pattyn10-May-11 17:11 
Questionget real html code from webbrowser Pin
mabrahao10-May-11 11:15
mabrahao10-May-11 11:15 
AnswerRe: get real html code from webbrowser Pin
Luc Pattyn10-May-11 11:22
sitebuilderLuc Pattyn10-May-11 11:22 
GeneralRe: get real html code from webbrowser Pin
mabrahao10-May-11 11:33
mabrahao10-May-11 11:33 
AnswerRe: get real html code from webbrowser Pin
Luc Pattyn10-May-11 11:44
sitebuilderLuc Pattyn10-May-11 11:44 
GeneralRe: get real html code from webbrowser Pin
mabrahao10-May-11 11:49
mabrahao10-May-11 11:49 
GeneralRe: get real html code from webbrowser Pin
Pete O'Hanlon10-May-11 12:02
mvePete O'Hanlon10-May-11 12:02 
GeneralRe: get real html code from webbrowser Pin
Dave Kreskowiak10-May-11 12:49
mveDave Kreskowiak10-May-11 12:49 
AnswerRe: get real html code from webbrowser Pin
Nitin S10-May-11 21:12
professionalNitin S10-May-11 21:12 
QuestionMultithreading with task in .net 4. Strange things. Pin
fory_cpp10-May-11 10:05
fory_cpp10-May-11 10:05 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
DaveyM6910-May-11 10:17
professionalDaveyM6910-May-11 10:17 
AnswerRe: Multithreading with task in .net 4. Strange things. [modified] Pin
Luc Pattyn10-May-11 10:19
sitebuilderLuc Pattyn10-May-11 10:19 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Smart Arab10-May-11 11:51
Smart Arab10-May-11 11:51 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Luc Pattyn10-May-11 11:57
sitebuilderLuc Pattyn10-May-11 11:57 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Alan Balkany11-May-11 3:59
Alan Balkany11-May-11 3:59 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Luc Pattyn11-May-11 4:28
sitebuilderLuc Pattyn11-May-11 4:28 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
Mark Salsbery10-May-11 10:23
Mark Salsbery10-May-11 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.