Click here to Skip to main content
15,921,959 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Member 391904928-Apr-08 9:56
Member 391904928-Apr-08 9:56 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Christian Graus28-Apr-08 11:29
protectorChristian Graus28-Apr-08 11:29 
RantRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 5:20
Spacix One29-Apr-08 5:20 
AnswerRe: How to implement a 30-day expiration / key-based registration for software Pin
Zoltan Balazs28-Apr-08 20:15
Zoltan Balazs28-Apr-08 20:15 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 5:23
Spacix One29-Apr-08 5:23 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Zoltan Balazs29-Apr-08 6:36
Zoltan Balazs29-Apr-08 6:36 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 7:39
Spacix One29-Apr-08 7:39 
QuestionCollection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin25-Apr-08 3:48
Laoujin25-Apr-08 3:48 
Hey,

I searched everywhere but was unable to find a solution somewhere:

I'm binding to a WinForms (2.0) DataGridView.
When I bind to the List(Of MyType) (List<mytype> in C#) it shows up just fine in the DataGridView. However MyType contains a List(Of MySubType) and I want each MySubType to appear as a column in the DataGridView.

What I did was wrapping up MyType like "MyTypeDescriptor : ICustomTypeDescriptor" (Implements) which exposes each MySubType as a property (I also needed a "MySubTypePropertyDesc : PropertyDescriptor" (Inherits) for this).

So I try to bind my new List(Of MyTypeDescriptor) to the DataGridView. What happens now is that the first row shows up correctly but all rows after that are a copy of the first one.

Considerations:
* The content of the List(Of MyTypeDescriptor) is correct. ie it contains the wrappers around the different MyType objects.
* When I bind the different "MyTypeDescriptor" to PropertyGrids, they show the expected data.
* I tried implementing the ITypedList but got the same incorrect result.

Anyone has an idea what I am supposed to do here?

Cheers,
Wouter
AnswerRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
gbarrett2-May-11 6:15
gbarrett2-May-11 6:15 
GeneralRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin4-May-11 7:42
Laoujin4-May-11 7:42 
GeneralHaving trouble with default icon for desktop app Pin
Mark F.24-Apr-08 11:43
Mark F.24-Apr-08 11:43 
GeneralRe: Having trouble with default icon for desktop app Pin
Mike Dimmick25-Apr-08 3:04
Mike Dimmick25-Apr-08 3:04 
GeneralRe: Having trouble with default icon for desktop app Pin
Mark F.26-Apr-08 10:06
Mark F.26-Apr-08 10:06 
QuestionHow to remove an application's taskbar icon ? Pin
tamour24-Apr-08 10:52
tamour24-Apr-08 10:52 
GeneralRe: How to remove an application's taskbar icon ? Pin
Mark F.24-Apr-08 12:02
Mark F.24-Apr-08 12:02 
GeneralRe: How to remove an application's taskbar icon ? Pin
tamour27-Apr-08 0:13
tamour27-Apr-08 0:13 
QuestionProgressBar questions... Pin
jose.angel.calleja24-Apr-08 6:30
jose.angel.calleja24-Apr-08 6:30 
GeneralRe: ProgressBar questions... Pin
Kschuler24-Apr-08 7:41
Kschuler24-Apr-08 7:41 
GeneralInstall tool Pin
Heracles Choe24-Apr-08 4:23
Heracles Choe24-Apr-08 4:23 
GeneralRe: Install tool Pin
Ed.Poore24-Apr-08 8:47
Ed.Poore24-Apr-08 8:47 
QuestionHow to access first created form's control properties from another form? Pin
Sinan Akyuz24-Apr-08 1:49
Sinan Akyuz24-Apr-08 1:49 
GeneralRe: How to access first created form's control properties from another form? Pin
Kschuler24-Apr-08 7:54
Kschuler24-Apr-08 7:54 
AnswerRe: How to access first created form's control properties from another form? Pin
tamour24-Apr-08 10:55
tamour24-Apr-08 10:55 
QuestionText alignment problem [modified] Pin
storm202124-Apr-08 0:33
storm202124-Apr-08 0:33 
Generalconvert datetime to decimal Pin
srinivassam23-Apr-08 21:15
srinivassam23-Apr-08 21:15 

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.