Click here to Skip to main content
15,909,332 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to render a huge report in realtime (<1 minute) Pin
Ennis Ray Lynch, Jr.26-Jul-06 7:06
Ennis Ray Lynch, Jr.26-Jul-06 7:06 
AnswerRe: how to render a huge report in realtime (<1 minute) Pin
LongRange.Shooter26-Jul-06 8:50
LongRange.Shooter26-Jul-06 8:50 
QuestionFolder and File traversing in C# Pin
Harikrk26-Jul-06 6:38
Harikrk26-Jul-06 6:38 
AnswerRe: Folder and File traversing in C# Pin
vikashparida26-Jul-06 6:47
vikashparida26-Jul-06 6:47 
AnswerRe: Folder and File traversing in C# Pin
Stefan Troschuetz26-Jul-06 6:51
Stefan Troschuetz26-Jul-06 6:51 
GeneralRe: Folder and File traversing in C# Pin
Harikrk27-Jul-06 4:48
Harikrk27-Jul-06 4:48 
QuestionEnterprise Library Database Logging Pin
osamahmirza26-Jul-06 6:37
osamahmirza26-Jul-06 6:37 
QuestionDefaultValue, Custom Attributes, and PropertyGrids Pin
LordAelfric26-Jul-06 6:21
LordAelfric26-Jul-06 6:21 
Perhaps its just a lack of my knowledge of C#, which is why I am asking here for potential solutions. Thanks ahead of time for trying to help me out here.

I have a custom attribute class that is used in conjunction with my PropertyGrid, where the data is being populated from an XML file. All of this works fine and the data shows up in the PropertyGrid as expected, but all the data is marked in bold (meaning its different then its default value). Now, to set a default value in a custom attribute you use:

[DefaultValue(false)]

The only problem, is that because the default value is based off of what's in the XML file, I obviously cannot set it, due to it not being a constant. I need to be able to set the default values in the attribute class with the data that's loaded from the file.

Anyone have any suggestions on how to go about that?

Thanks,

Jacob
AnswerRe: DefaultValue, Custom Attributes, and PropertyGrids Pin
LongRange.Shooter26-Jul-06 9:12
LongRange.Shooter26-Jul-06 9:12 
GeneralRe: DefaultValue, Custom Attributes, and PropertyGrids [modified] Pin
LordAelfric26-Jul-06 10:15
LordAelfric26-Jul-06 10:15 
GeneralRe: DefaultValue, Custom Attributes, and PropertyGrids Pin
Martin#26-Jul-06 9:18
Martin#26-Jul-06 9:18 
Questionout value? Pin
honeyman_can26-Jul-06 6:17
honeyman_can26-Jul-06 6:17 
AnswerRe: out value? Pin
Dustin Metzgar26-Jul-06 6:28
Dustin Metzgar26-Jul-06 6:28 
QuestionHashtable vs. Dictionary (key values) Pin
honeyman_can26-Jul-06 5:12
honeyman_can26-Jul-06 5:12 
AnswerRe: Hashtable vs. Dictionary (key values) Pin
Dustin Metzgar26-Jul-06 5:17
Dustin Metzgar26-Jul-06 5:17 
AnswerUnf, no Pin
Ennis Ray Lynch, Jr.26-Jul-06 6:24
Ennis Ray Lynch, Jr.26-Jul-06 6:24 
QuestionInstalling MSDE or SQL Express Edition with Dot Net application [modified] Pin
wasife26-Jul-06 5:10
wasife26-Jul-06 5:10 
AnswerRe: Installing MSDE or SQL Express Edition with Dot Net application [modified] Pin
Paul Conrad26-Jul-06 6:27
professionalPaul Conrad26-Jul-06 6:27 
QuestionGlobalization and Localization in C#. Pin
Herhighness26-Jul-06 4:48
Herhighness26-Jul-06 4:48 
AnswerRe: Globalization and Localization in C#. Pin
MCSD-Gandalf26-Jul-06 5:14
MCSD-Gandalf26-Jul-06 5:14 
AnswerRe: Globalization and Localization in C#. Pin
Stefan Troschuetz26-Jul-06 5:19
Stefan Troschuetz26-Jul-06 5:19 
Questionproblem with listview ? help please ... Pin
cmpeng3426-Jul-06 4:13
cmpeng3426-Jul-06 4:13 
AnswerRe: problem with listview ? help please ... Pin
Ed.Poore26-Jul-06 4:41
Ed.Poore26-Jul-06 4:41 
Questioncannot find custom tool and CrystalDecisions.VSShell.CodeGen.ReportCodeGenerator Pin
Saamir26-Jul-06 3:45
Saamir26-Jul-06 3:45 
AnswerRe: cannot find custom tool and CrystalDecisions.VSShell.CodeGen.ReportCodeGenerator Pin
Member 1048674820-May-14 21:46
Member 1048674820-May-14 21:46 

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.