Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: DataGridView Sorting in windows [modified] Pin
Luc Pattyn10-May-11 17:11
sitebuilderLuc Pattyn10-May-11 17:11 
Hi,

a DGV is a complex Control. I got it sorting any way I want, see e.g. my "CP Vanity" article.

From memory, and maybe not 100% accurate:
1. It would not sort (but throw some exception) when databound to something that does not implement IBindingList; that is why I often use a DataTable, not just a List as a data source.
2. It would sort in the natural way when set to Automatic, without requiring any extra code.
3. It could be made to sort in odd ways by setting to Programmatic and calling Sort() explicitly, again see CP Vanity.

Note: I would never change the sort mode inside a click handler, in fact I think the sort mode for each column typically should be constant throughout the app's life, it may be different amongst columns, but I see no need to change it over time.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Tuesday, May 10, 2011 11:31 PM

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 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
BobJanova12-May-11 2:00
BobJanova12-May-11 2:00 

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.