Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27196

error in create a class inherits of DataGridViewColumnCollection

$
0
0
i create this class :


Code:

Public Class MyDatagridviewColumnCollection
    Inherits DataGridViewColumnCollection
    Public Sub GetEquation()
        MsgBox("Get Equation here")
    End Sub
End Class

this error appear

Code:

Error 1 Class 'WindowsApplication1.MyDatagridviewColumnCollection' must declare a 'Sub New' because its base class 'System.Windows.Forms.DataGridViewColumnCollection' does not have an accessible 'Sub New' that can be called with no arguments. C:\Users\pooyan\Documents\Visual Studio 2010\Projects\Test Projects\Datagridview Like Excel\Datagridview Like Excel\MyDatagridviewRow.vb 1 14 Datagridview Like Excel

what is its reason? please correct the wrong part....

Viewing all articles
Browse latest Browse all 27196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>