Hi All,
I am trying to pass a value to a public property when I double click a row in a datagrid.
The grid is on a form and my property is in a separate class, here is my double click code:
VB Code:
Private Sub grdCli_DoubleClick(ByVal value As Object, ByVal e As System.EventArgs) Handles grdCli.DoubleClick value = grdCli.Item(grdCli.CurrentCell.RowNumber, grdCli.CurrentCell.ColumnNumber) End Sub
and here is the property I am trying to set:
VB Code:
Public Property CliID() As Integer Get Return Me._cliid End Get Set(ByVal Value As Integer) Me._cliid = Value End Set End Property
The value is being selected fine but I am not sure how to set the property within the class.
any ideas appreciated.




Reply With Quote