PDA

View Full Version : PropertyGrid with 2 values



1099511627776
6 Mar 2012, 6:23 AM
Hello,
I have this kind of problem:
I have a propertyGrid with field called "client", where client NAME is stored, I've implemented a custom editor that let's me choose client from dictionary now I have to DISPLAY client NAME in propertyGrids value column and i have to SAVE clients ID some where to sync with bakend server.
Is there any way to do it in standard PropertyGrid ?

mitchellsimoens
6 Mar 2012, 10:48 AM
I'm not sure I follow. You have the name row and you need to display the name value in the value column?

1099511627776
6 Mar 2012, 11:12 AM
I have a dictionary 'CLIENTS 'with 2 fields (CLIENT_NAME,CLIENT_ID).
and many DOCUMENTS with structure (DOCID,CLIENT_ID,SUM)
when displaying DOCUMENT in PropertyGrid I need to display a CLIENT_ID as CLIENT_NAME but after changing client need to post CLIENT_ID to backend. That is why i need to store CLIENT_ID some where in PropertyGrid hidden