Versions des environnements
Network:
Windows 2000 Server
>Thanks Viv - I still don't understand completely - maybe one day ?
Probably because I'm lousy at explaining things.
The AddRange method accepts an array of type DataGridViewColumn (or any class derived therefrom)
You are creating an array of type PJKBaseDataGridViewColum - so far so good since it IS derived from DataGridViewColumn.
But the first item in the array (Column1) is of type PJBaseDataGridViewTextBoxColumn.
This is derived from the Windows.DataGridViewTextBoxColumn NOT PJKBaseDataGridViewColum.
Therefore it can't be added to the array.
If you derive PJBaseDataGridViewTextBoxColumn from PJKBaseDataGridViewColum instead all should be well.
Alternatively if you create an array of type Windows.DataGridViewColumn that should also work.
Dang, I don't think that's any clearer either :-{
How's the snow with you?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement