Hi
I have a bit of a dum question, but it's been a great headache for the last couple of days
I implemented a Palette with a DataGridView on it but I can't access the Grid control through a CommandMethod.
For example:
Private Sub Add5000RowsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add5000RowsToolStripMenuItem.Click
dgv.Rows.Clear()
dgv.Columns.Clear()
dgv.RowCount = 5000
dgv.ColumnCount = 100
End Sub
This adds a couple
of rows in the grid control via a ToolStripMenu, but when I write something like:
<CommandMethod("ccc")> _
Public Sub cl()
do something whit the datagridview
End Sub
follows:
Error 6 Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
Any help would be greatly appreciated.
Thanks in advance.