Piccoli Bug crescono...

Ma sono l'unico a volere spremere .Net per tirar fuori un bel modello di programmazione ad oggetti?

L'ereditarietà, questa sconosciuta.

E i primi bug saltano fuori: una DataGridView dichiarata protected nella classe padre, non è modificabile (a design time) nella classe figlio.
Mi sono imbattuto oggi in questo problema (importando un progetto da VB.Net 2003 e cambiando la DataGrid con una nuova DataGridView) e ho anche trovato conferme qui.

Tristezza. Come proseguire?

Beh io ho risolto semplicemente inserendo un Panel nella classe padre che contiene la DataGridView, assegnandogli ovviamente la visibilità Protected a lui...

Certo che potrebbero forse controllare certe cose per invogliare a programmare con i nuovi framework e IDE, piuttosto che passare ore e ore a mostrare quanto si alza la produzione grazie a drag&drop e wizard... :S

powered by IMHO Omar "Bromarock" Damiani

Print | posted on martedì 15 novembre 2005 18.17

Feedback

# re: Piccoli Bug crescono...

Left by Matteo at 16/11/2005 10.38
Gravatar Risalendo la catena dei post ho trovato la spiegazione. Non è un bug, ma una limitazione by design.
Trovi i dettagli qui:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=4e5ab2bb-17ec-49f9-a48d-c19753c9ad7c

ciao
m.

# re: Piccoli Bug crescono...

Left by diogo at 12/01/2006 16.35
Gravatar Hi.
Did you find a way to work with this "design-time" bug? I need to do it... inherit a form and set some datagridview properties.

thanks.

# re: Piccoli Bug crescono...

Left by Omar Damiani at 12/01/2006 17.17
Gravatar Depends on what you have to set in your dgv.

If is only a design or graphical problem, you can put your dgv in a panel (declared as protected) so you will work on it.

For all other properties I think you have to set them at runtime...

Bye

Your comment:





 
Please add 7 and 3 and type the answer here:

Copyright © Omar Damiani

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski