T
Theodore
Hi,
i have a class "MyClass" with a public property of datatable type. I also
have a form with a public property of type "MyClass". The form has a
datagrid which binds to MyClass.Table datatable. While navigating through
the datagrid rows i can see the current position of MyClass.Table object
through the currency manager (ctype(bindingcontext(Myclass.Table),
currencymanager).position). How can i see the current position from within
MyClass object?
Public Class MyClass
Public Sub New
Mybase.New
Table = Get a Table from SQL DB
End Sub
Private _table as datatable
Public Property Table() as Datatable
Get
Return _Table
End Get
Set (ByVal Value as Datatable)
_table = value
End Set
End Property
End Class
Within a form class ......
Private _sclass as MyClass
Public Property sclass() as MyClass
Get
Return _sclass
End Get
Set (ByVal Value as MyClass)
_sclass = value
End Set
End Property
Me.DataGrid.Datasource = sclass.Table
Thanks,
Theodore
i have a class "MyClass" with a public property of datatable type. I also
have a form with a public property of type "MyClass". The form has a
datagrid which binds to MyClass.Table datatable. While navigating through
the datagrid rows i can see the current position of MyClass.Table object
through the currency manager (ctype(bindingcontext(Myclass.Table),
currencymanager).position). How can i see the current position from within
MyClass object?
Public Class MyClass
Public Sub New
Mybase.New
Table = Get a Table from SQL DB
End Sub
Private _table as datatable
Public Property Table() as Datatable
Get
Return _Table
End Get
Set (ByVal Value as Datatable)
_table = value
End Set
End Property
End Class
Within a form class ......
Private _sclass as MyClass
Public Property sclass() as MyClass
Get
Return _sclass
End Get
Set (ByVal Value as MyClass)
_sclass = value
End Set
End Property
Me.DataGrid.Datasource = sclass.Table
Thanks,
Theodore