i create this class :
this error appear
what is its reason? please correct the wrong part....
VB.NET:
Public Class MyDatagridviewColumnCollection
Inherits DataGridViewColumnCollection
Public Sub GetEquation()
MsgBox("Get Equation here")
End Sub
End Class
this error appear
VB.NET:
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....