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

C#

 
GeneralUpButton and DownButton methods Pin
JeffHarrold2-May-05 15:52
JeffHarrold2-May-05 15:52 
GeneralRe: UpButton and DownButton methods Pin
JeffHarrold3-May-05 13:11
JeffHarrold3-May-05 13:11 
Generalbrowsing the web from widows application Pin
Modern_night2-May-05 15:29
Modern_night2-May-05 15:29 
GeneralRe: browsing the web from widows application Pin
Christian Graus2-May-05 16:25
protectorChristian Graus2-May-05 16:25 
GeneralRe: browsing the web from widows application Pin
Polis Pilavas3-May-05 3:37
Polis Pilavas3-May-05 3:37 
QuestionPropertyGrid - how to apply changes? Pin
czajajajatoszmaciarz2-May-05 13:04
czajajajatoszmaciarz2-May-05 13:04 
AnswerRe: PropertyGrid - how to apply changes? Pin
Dan_P2-May-05 15:03
Dan_P2-May-05 15:03 
AnswerRe: PropertyGrid - how to apply changes? Pin
Mathew Hall2-May-05 15:03
Mathew Hall2-May-05 15:03 
Is there a way to make it display only the properties I want?

You'll need to implement ICustomTypeDescriptor and return the properties you want displayed in the GetProperties method. These articles (Customized display of collection data in a PropertyGrid[^], Globalized property grid[^], Bending the .NET PropertyGrid to Your Will[^]) show how to do this.

And how to apply the chenges after the user clicks, let's say Apply button?

The best way would probably be to create a new class that contains the properties to be displayed and also implements ICustomTypeDescriptor which you can then select into the property grid instead of the other class. Then when the Apply button is clicked you can copy the new values back.

"I think I speak on behalf of everyone here when I say huh?" - Buffy
GeneralRe: PropertyGrid - how to apply changes? Pin
Anonymous3-May-05 10:00
Anonymous3-May-05 10:00 
GeneralRead only Outlookbar Pin
Member 19299502-May-05 12:43
Member 19299502-May-05 12:43 
GeneralRe: Read only Outlookbar Pin
MoustafaS2-May-05 13:14
MoustafaS2-May-05 13:14 
GeneralUrl navigation Pin
Adnan Siddiqi2-May-05 10:42
Adnan Siddiqi2-May-05 10:42 
GeneralRe: Url navigation Pin
leppie2-May-05 14:57
leppie2-May-05 14:57 
QuestionCancellable operation -- recommended practice? Pin
Judah Gabriel Himango2-May-05 9:42
sponsorJudah Gabriel Himango2-May-05 9:42 
AnswerRe: Cancellable operation -- recommended practice? Pin
Marc Clifton2-May-05 10:56
mvaMarc Clifton2-May-05 10:56 
GeneralRe: Cancellable operation -- recommended practice? Pin
Judah Gabriel Himango2-May-05 11:03
sponsorJudah Gabriel Himango2-May-05 11:03 
QuestionPassing methods to ThreadStart - Possible? Pin
stan282-May-05 8:52
stan282-May-05 8:52 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
Judah Gabriel Himango2-May-05 9:05
sponsorJudah Gabriel Himango2-May-05 9:05 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
Marc Clifton2-May-05 10:52
mvaMarc Clifton2-May-05 10:52 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
leppie2-May-05 14:29
leppie2-May-05 14:29 
GeneralGeneric Hashtable Pin
Anonymous2-May-05 8:48
Anonymous2-May-05 8:48 
GeneralRe: Generic Hashtable Pin
Marc Clifton2-May-05 10:53
mvaMarc Clifton2-May-05 10:53 
GeneralRe: Generic Hashtable Pin
Anonymous3-May-05 5:09
Anonymous3-May-05 5:09 
GeneralRe: Generic Hashtable Pin
leppie2-May-05 14:46
leppie2-May-05 14:46 
GeneralOle Server Pin
BigAnyon2-May-05 5:58
BigAnyon2-May-05 5:58 

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.