Click here to Skip to main content
16,010,673 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to create Properties Dynamically in Property grid Pin
Dave Kreskowiak25-Oct-07 6:20
mveDave Kreskowiak25-Oct-07 6:20 
GeneralRe: How to create Properties Dynamically in Property grid Pin
visualhint25-Oct-07 6:36
visualhint25-Oct-07 6:36 
GeneralRe: How to create Properties Dynamically in Property grid Pin
Dave Kreskowiak25-Oct-07 7:03
mveDave Kreskowiak25-Oct-07 7:03 
AnswerRe: How to create Properties Dynamically in Property grid Pin
darkelv25-Oct-07 17:19
darkelv25-Oct-07 17:19 
GeneralRe: How to create Properties Dynamically in Property grid Pin
visualhint26-Oct-07 2:45
visualhint26-Oct-07 2:45 
QuestionPopulate Property Grid with Datatable rows Pin
danasegaranea24-Oct-07 23:10
danasegaranea24-Oct-07 23:10 
AnswerRe: Populate Property Grid with Datatable rows Pin
Dave Kreskowiak25-Oct-07 3:36
mveDave Kreskowiak25-Oct-07 3:36 
AnswerRe: Populate Property Grid with Datatable rows Pin
visualhint25-Oct-07 5:35
visualhint25-Oct-07 5:35 
Hi Dana,

You can put whatever you want in a PropertyGrid as long as you write a class that will publish the properties you want. It has to implement ICustomTypeDescriptor. If you drop it to the SelectedObject property, you will see the custom properties. With .Net 2.0 you can also use the TypeDescriptionProvider so that you don't have to modify your existing class (the DataTable) to make it implement ICustomTypeDescriptor. You will find some resources about this subject on the PropertyGrid Resource List.

If a commercial component is an option for you, you have also Smart PropertyGrid. It has a mode where you can simply call AppendProperty-like methods and fill the grid completely dynamicall without having to build separate TypeDescriptor classes.

I hope this helps.


GeneralRe: Populate Property Grid with Datatable rows Pin
danasegaranea25-Oct-07 18:20
danasegaranea25-Oct-07 18:20 
GeneralRe: Populate Property Grid with Datatable rows Pin
visualhint26-Oct-07 2:48
visualhint26-Oct-07 2:48 
Questionhow to close page when click open new page Pin
isis_preaw24-Oct-07 22:29
isis_preaw24-Oct-07 22:29 
AnswerRe: how to close page when click open new page Pin
Christian Graus24-Oct-07 22:40
protectorChristian Graus24-Oct-07 22:40 
QuestionHow to parse VBA script file in MFC ? Pin
Paresh Chitte24-Oct-07 20:49
Paresh Chitte24-Oct-07 20:49 
AnswerPlease don't cross post Pin
CPallini24-Oct-07 22:43
mveCPallini24-Oct-07 22:43 
Questionautomated mail Pin
accessred24-Oct-07 20:23
accessred24-Oct-07 20:23 
AnswerRe: automated mail Pin
Marek Grzenkowicz24-Oct-07 22:58
Marek Grzenkowicz24-Oct-07 22:58 
GeneralRe: automated mail Pin
accessred24-Oct-07 23:25
accessred24-Oct-07 23:25 
GeneralRe: automated mail Pin
Marek Grzenkowicz24-Oct-07 23:40
Marek Grzenkowicz24-Oct-07 23:40 
GeneralRe: automated mail Pin
Tom Deketelaere24-Oct-07 23:46
professionalTom Deketelaere24-Oct-07 23:46 
GeneralRe: automated mail Pin
accessred25-Oct-07 0:06
accessred25-Oct-07 0:06 
GeneralRe: automated mail Pin
Tom Deketelaere25-Oct-07 2:34
professionalTom Deketelaere25-Oct-07 2:34 
GeneralRe: automated mail Pin
accessred25-Oct-07 2:49
accessred25-Oct-07 2:49 
QuestionVBScript question Pin
T4AMD24-Oct-07 15:29
T4AMD24-Oct-07 15:29 
AnswerRe: VBScript question Pin
Dave Kreskowiak25-Oct-07 3:30
mveDave Kreskowiak25-Oct-07 3:30 
QuestionPublishing Database apps. Pin
The ANZAC24-Oct-07 14:07
The ANZAC24-Oct-07 14:07 

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.