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

C#

 
GeneralRe: DataGridView scrolling? Pin
kbalias2-Aug-08 22:55
kbalias2-Aug-08 22:55 
GeneralRe: DataGridView scrolling? Pin
Mycroft Holmes3-Aug-08 2:25
professionalMycroft Holmes3-Aug-08 2:25 
QuestionChallenge for C# guru's Pin
MarkB7772-Aug-08 21:50
MarkB7772-Aug-08 21:50 
AnswerRe: Challenge for C# guru's Pin
Nicholas Butler2-Aug-08 23:43
sitebuilderNicholas Butler2-Aug-08 23:43 
GeneralRe: Challenge for C# guru's [modified] Pin
Guffa3-Aug-08 0:24
Guffa3-Aug-08 0:24 
GeneralRe: Challenge for C# guru's Pin
Nicholas Butler3-Aug-08 1:00
sitebuilderNicholas Butler3-Aug-08 1:00 
GeneralRe: Challenge for C# guru's Pin
MarkB7773-Aug-08 14:55
MarkB7773-Aug-08 14:55 
AnswerRe: Challenge for C# guru's Pin
PIEBALDconsult3-Aug-08 5:33
mvePIEBALDconsult3-Aug-08 5:33 
So you have a 2D grid of values, a struct to hold the values from one row, and an enumeration to map columns in one to fields in the other.
And you fill a Dictionary with the enumeration values.

1) Why is the key type of the Dictionary int rather than Fields?
2) Why is the value type of the Dictionary char rather than int?
3) Why do you protect yourself against missing values in the dictionary?
4) What's with the -64 ?

If the Dictionary is set up properly you should be able to do:

record.firstName = grid [ 1 , fields [ Fields.FIRSTNAME ] ].ToString() ;


The question is; how much control do you have over these details?
In fact, the grid would be more useful as object[][] rather than object[,].

The possibilities are endless.
GeneralRe: Challenge for C# guru's Pin
MarkB7773-Aug-08 14:52
MarkB7773-Aug-08 14:52 
GeneralRe: Challenge for C# guru's Pin
PIEBALDconsult4-Aug-08 13:37
mvePIEBALDconsult4-Aug-08 13:37 
QuestionHow can I have *.Pdf files in C# Project ? Pin
Laji592-Aug-08 20:11
Laji592-Aug-08 20:11 
AnswerRe: How can I have *.Pdf files in C# Project ? Pin
Paul Conrad2-Aug-08 20:52
professionalPaul Conrad2-Aug-08 20:52 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Laji592-Aug-08 21:06
Laji592-Aug-08 21:06 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Paul Conrad2-Aug-08 21:09
professionalPaul Conrad2-Aug-08 21:09 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Laji593-Aug-08 0:20
Laji593-Aug-08 0:20 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Paul Conrad3-Aug-08 5:10
professionalPaul Conrad3-Aug-08 5:10 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Firedragonweb3-Aug-08 23:55
Firedragonweb3-Aug-08 23:55 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Paul Conrad4-Aug-08 4:55
professionalPaul Conrad4-Aug-08 4:55 
AnswerRe: How can I have *.Pdf files in C# Project ? Pin
Lutosław3-Aug-08 2:00
Lutosław3-Aug-08 2:00 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Laji593-Aug-08 3:37
Laji593-Aug-08 3:37 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Lutosław11-Aug-08 23:49
Lutosław11-Aug-08 23:49 
AnswerRe: How can I have *.Pdf files in C# Project ? Pin
nelsonpaixao3-Aug-08 14:46
nelsonpaixao3-Aug-08 14:46 
GeneralRe: How can I have *.Pdf files in C# Project ? [modified] Pin
Laji593-Aug-08 18:33
Laji593-Aug-08 18:33 
GeneralRe: How can I have *.Pdf files in C# Project ? Pin
Paul Conrad4-Aug-08 4:56
professionalPaul Conrad4-Aug-08 4:56 
QuestionHow do I create a label thats display the time like a digital clock ? Pin
Lim Yuxuan2-Aug-08 17:49
Lim Yuxuan2-Aug-08 17:49 

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.