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

C#

 
GeneralRe: range of cells border question Pin
Blubbo27-Feb-12 8:27
Blubbo27-Feb-12 8:27 
Question"Find" name or value of property in Property Grid (property grid is tree structure) Pin
kashme27-Feb-12 3:47
kashme27-Feb-12 3:47 
Consider a larger picture. Suppose I have class A,B,C.

Class A contains property B and class B contains property C and class C have some properties. How will I access properties of C. I need to know a generic solution. Now suppose I start from A as rootNode in tree structure and propertyGrid.SelectedObject = A, how will I access properties of class C.
In real world context suppose I need to find "x" using property grid and tree structure. The output should highlight x and its value in propertygrid.

sample code::

Class A

{

B b { get; set;}

}

Class B

{

C c { get; set;}

}

Class C

{

int x { get; set;}

float y { get; set;}

string z { get; set;}

}

int main()

{

A a = new A();

propertyGrid.SelectedObject = a;

}

How will I access x,y,z name and value using propertygrid.

I am stuck here, please help.
AnswerRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
fjdiewornncalwe27-Feb-12 4:01
professionalfjdiewornncalwe27-Feb-12 4:01 
GeneralRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
kashme27-Feb-12 4:12
kashme27-Feb-12 4:12 
GeneralRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
Subin Mavunkal28-Feb-12 2:26
Subin Mavunkal28-Feb-12 2:26 
AnswerRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
Shameel27-Feb-12 4:31
professionalShameel27-Feb-12 4:31 
QuestionCosmos C# Pin
Ahmed Yosri27-Feb-12 2:52
Ahmed Yosri27-Feb-12 2:52 
AnswerRe: Cosmos C# Pin
Pete O'Hanlon27-Feb-12 2:59
mvePete O'Hanlon27-Feb-12 2:59 
AnswerRe: Cosmos C# Pin
OriginalGriff27-Feb-12 3:35
mveOriginalGriff27-Feb-12 3:35 
Questionbig database on sqlCE - it Takes a long time to open connection Pin
goldsoft27-Feb-12 1:53
goldsoft27-Feb-12 1:53 
AnswerRe: big database on sqlCE - it Takes a long time to open connection Pin
Dave Kreskowiak27-Feb-12 2:10
mveDave Kreskowiak27-Feb-12 2:10 
QuestionMonitor Exchange Server 2007 Pin
Sebastian T Xavier26-Feb-12 23:21
Sebastian T Xavier26-Feb-12 23:21 
AnswerRe: Monitor Exchange Server 2007 Pin
phil.o26-Feb-12 23:43
professionalphil.o26-Feb-12 23:43 
GeneralRe: Monitor Exchange Server 2007 Pin
Sebastian T Xavier27-Feb-12 0:06
Sebastian T Xavier27-Feb-12 0:06 
GeneralRe: Monitor Exchange Server 2007 Pin
Dave Kreskowiak27-Feb-12 2:06
mveDave Kreskowiak27-Feb-12 2:06 
Questionconvert types from IronPython to C# Pin
lune1226-Feb-12 22:19
lune1226-Feb-12 22:19 
AnswerRe: convert types from IronPython to C# Pin
Abhinav S26-Feb-12 23:32
Abhinav S26-Feb-12 23:32 
AnswerRe: convert types from IronPython to C# Pin
Sentenryu28-Feb-12 0:08
Sentenryu28-Feb-12 0:08 
GeneralRe: convert types from IronPython to C# Pin
lune1228-Feb-12 0:55
lune1228-Feb-12 0:55 
QuestionContext menu not shown in windows 7 Pin
iamdking26-Feb-12 21:05
iamdking26-Feb-12 21:05 
Questionhow to USB(Pen drive)Read only in C#.net Pin
Member 859750326-Feb-12 19:44
Member 859750326-Feb-12 19:44 
AnswerRe: how to USB(Pen drive)Read only in C#.net Pin
Abhinav S26-Feb-12 20:14
Abhinav S26-Feb-12 20:14 
AnswerRe: how to USB(Pen drive)Read only in C#.net Pin
Eddy Vluggen26-Feb-12 23:20
professionalEddy Vluggen26-Feb-12 23:20 
Questionquation Pin
hareesh goud26-Feb-12 18:23
hareesh goud26-Feb-12 18:23 
AnswerRe: quation PinPopular
Dave Kreskowiak26-Feb-12 18:40
mveDave Kreskowiak26-Feb-12 18:40 

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.