Environment versions
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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only