Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
QuestionBest way to insert DataSet to database table Pin
cokelite15-May-08 0:44
cokelite15-May-08 0:44 
AnswerRe: Best way to insert DataSet to database table Pin
Bert delaVega15-May-08 7:16
Bert delaVega15-May-08 7:16 
QuestionImplement ListView Itemplate - for dynamically building a listview itemtemplaet Pin
harleydk15-May-08 0:42
harleydk15-May-08 0:42 
QuestionHow to preserve Master page data whenever conten page is loaded? Pin
.NetRams15-May-08 0:10
.NetRams15-May-08 0:10 
AnswerRe: How to preserve Master page data whenever conten page is loaded? Pin
harleydk15-May-08 0:39
harleydk15-May-08 0:39 
QuestionHow do I create a PropertyGrid with dynamic Properties? Pin
Megidolaon14-May-08 23:51
Megidolaon14-May-08 23:51 
AnswerRe: How do I create a PropertyGrid with dynamic Properties? Pin
Gareth H14-May-08 23:57
Gareth H14-May-08 23:57 
GeneralRe: How do I create a PropertyGrid with dynamic Properties? Pin
Megidolaon15-May-08 0:23
Megidolaon15-May-08 0:23 
It's not that simple.

I have a class called Task which has List of TaskParameter objects.
Each TaskParameter object has the properties "Name", "Type" and "Value".
"Name" should be displayed as the name of a property in the grid, "Type" I want to use to validate the user input and "Value" is the value of Parameter.

The amount of Parameters, their names, types, values, categories and description must be dynamiccally assignable because they change from Task to Task and the Tasks (the Tasks are also subject to change at runtime so I can't just create a different class for each Task).

Is there a way to create a class that allows me to dynamically assign names, types, values, categories and description (readonly and browsable are secondary, it's assumed all properties that are in the TaskParameter collection are browsable and assignable by the user) for a property at runtime and also displays a whole collection of them at once?

So far the only noteworthy results I had when using only a single TaskParameter object and when I used an array created from the TaskParameter List of the Task class, it only displays the "Name", "Type" and "Value" properties but without any descriptions, defaults or anything else.
GeneralRe: How do I create a PropertyGrid with dynamic Properties? Pin
visualhint22-May-08 9:37
visualhint22-May-08 9:37 
Questionproblem in Range selection Pin
sailesh_gupta14-May-08 23:37
sailesh_gupta14-May-08 23:37 
AnswerRe: problem in Range selection Pin
Christian Graus14-May-08 23:53
protectorChristian Graus14-May-08 23:53 
QuestionRe: problem in Range selection Pin
sailesh_gupta14-May-08 23:59
sailesh_gupta14-May-08 23:59 
AnswerRe: problem in Range selection Pin
Christian Graus15-May-08 0:41
protectorChristian Graus15-May-08 0:41 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 0:52
sailesh_gupta15-May-08 0:52 
QuestionRe: problem in Range selection Pin
CPallini15-May-08 0:56
mveCPallini15-May-08 0:56 
AnswerRe: problem in Range selection Pin
sailesh_gupta15-May-08 1:06
sailesh_gupta15-May-08 1:06 
GeneralRe: problem in Range selection Pin
CPallini15-May-08 2:02
mveCPallini15-May-08 2:02 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 2:09
sailesh_gupta15-May-08 2:09 
GeneralRe: problem in Range selection Pin
CPallini15-May-08 2:28
mveCPallini15-May-08 2:28 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 3:24
sailesh_gupta15-May-08 3:24 
GeneralRe: problem in Range selection Pin
Christian Graus15-May-08 0:58
protectorChristian Graus15-May-08 0:58 
Questioninterlock exchange issue Pin
George_George14-May-08 23:23
George_George14-May-08 23:23 
AnswerRe: interlock exchange issue Pin
S. Senthil Kumar15-May-08 1:22
S. Senthil Kumar15-May-08 1:22 
GeneralRe: interlock exchange issue Pin
George_George15-May-08 1:31
George_George15-May-08 1:31 
QuestionSome advice for web crawling - html parsing. Pin
George Sp.14-May-08 23:17
George Sp.14-May-08 23: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.