Click here to Skip to main content
15,907,395 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
hkjghkj12-Apr-09 9:40
hkjghkj12-Apr-09 9:40 
AnswerRe: Creating table in mdb from textbox Pin
Wes Aday2-Apr-09 12:41
professionalWes Aday2-Apr-09 12:41 
QuestionPLEASE HELP trying to get data from xml using c# Pin
faizych2-Apr-09 9:39
faizych2-Apr-09 9:39 
AnswerRe: PLEASE HELP trying to get data from xml using c# Pin
EliottA2-Apr-09 9:51
EliottA2-Apr-09 9:51 
AnswerRe: PLEASE HELP trying to get data from xml using c# Pin
DaveyM692-Apr-09 10:38
professionalDaveyM692-Apr-09 10:38 
GeneralRe: PLEASE HELP trying to get data from xml using c# Pin
Henry Minute2-Apr-09 11:26
Henry Minute2-Apr-09 11:26 
AnswerRe: PLEASE HELP trying to get data from xml using c# Pin
Xmen Real 2-Apr-09 16:00
professional Xmen Real 2-Apr-09 16:00 
QuestionSingle Elimination - Tournament Brackets Pin
aslamc2-Apr-09 9:29
aslamc2-Apr-09 9:29 
AnswerRe: Single Elimination - Tournament Brackets Pin
aslamc3-Apr-09 12:40
aslamc3-Apr-09 12:40 
GeneralRe: Single Elimination - Tournament Brackets Pin
Ed K13-Nov-12 12:38
Ed K13-Nov-12 12:38 
QuestionApplying Separator in Combo Box....help plz! [modified] Pin
Rajdeep.NET is BACK2-Apr-09 9:10
Rajdeep.NET is BACK2-Apr-09 9:10 
AnswerRe: Applying Separator in Combo Box....help plz! Pin
DaveyM692-Apr-09 10:09
professionalDaveyM692-Apr-09 10:09 
GeneralRe: Applying Separator in Combo Box....help plz! Pin
Rajdeep.NET is BACK2-Apr-09 10:49
Rajdeep.NET is BACK2-Apr-09 10:49 
QuestionDrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:03
Jacob Dixon2-Apr-09 9:03 
AnswerRe: DrawLine on Panel? Not saving? Pin
Colin Angus Mackay2-Apr-09 9:21
Colin Angus Mackay2-Apr-09 9:21 
GeneralRe: DrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:23
Jacob Dixon2-Apr-09 9:23 
GeneralRe: DrawLine on Panel? Not saving? Pin
Colin Angus Mackay2-Apr-09 9:31
Colin Angus Mackay2-Apr-09 9:31 
GeneralRe: DrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:48
Jacob Dixon2-Apr-09 9:48 
QuestionBinding in-memory data to a DataGridView Pin
StevenS_Dev2-Apr-09 8:38
StevenS_Dev2-Apr-09 8:38 
AnswerRe: Binding in-memory data to a DataGridView Pin
Mycroft Holmes2-Apr-09 11:04
professionalMycroft Holmes2-Apr-09 11:04 
GeneralRe: Binding in-memory data to a DataGridView Pin
StevenS_Dev2-Apr-09 12:12
StevenS_Dev2-Apr-09 12:12 
By losing the sort, I mean I can no longer sort when clicking on the column. This is just the nature of using a List or array as your datasource as they don't know how to sort per column. Also, when I say this is in-memory data, what I really mean is this is not connected to a database.

I now have things working by deriving from IBindingList and implementing the sort routines as well as adding a Comparer, but it took me awhile. I tried How To Allow To Sort By Multiple Columns in Custom Data Binding which would not compile. It is based on an article from MSDN. So I fixed up the code to be like the MSDN article and, though it would compile, I still could not sort on my columns.

I ended up having to use a sample in the MSDN Library for an IBindingList interface. But even THAT example does not show how to sort. So I took the necessary bits I needed from Implementing a strongly typed collection with sort/filter/GetChanges features and finally got things working.
GeneralRe: Binding in-memory data to a DataGridView Pin
Henry Minute2-Apr-09 15:04
Henry Minute2-Apr-09 15:04 
GeneralRe: Binding in-memory data to a DataGridView Pin
StevenS_Dev3-Apr-09 13:22
StevenS_Dev3-Apr-09 13:22 
Questioncalling method/event of one form from another Pin
Sandeep Kalra2-Apr-09 8:22
Sandeep Kalra2-Apr-09 8:22 
AnswerRe: calling method/event of one form from another Pin
Colin Angus Mackay2-Apr-09 9:17
Colin Angus Mackay2-Apr-09 9:17 

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.