N
Nic
Hi,
The original creators of the ListView control never
envisioned that we'd want to override the Columns
property with our own version, so they didn't mark it as
Overridable. This means we can't simply override the
property. Fortunately, we can use the Shadows keyword to
override a method even when it wasn't designed that way.
Thats is possible in VB.NET.
What do I have to do in C#?
The VB code is :
Public Shadows ReadOnly Property Columns() As
DataColumnHeaderCollection
Get
Return mColumns
End Get
End Property
Thanks,
Nic
The original creators of the ListView control never
envisioned that we'd want to override the Columns
property with our own version, so they didn't mark it as
Overridable. This means we can't simply override the
property. Fortunately, we can use the Shadows keyword to
override a method even when it wasn't designed that way.
Thats is possible in VB.NET.
What do I have to do in C#?
The VB code is :
Public Shadows ReadOnly Property Columns() As
DataColumnHeaderCollection
Get
Return mColumns
End Get
End Property
Thanks,
Nic