B
Blake Weaver
I'm trying get at the underlying data in the form's currencymanager. I found
an example in the Microsoft Press book "ADO.NET Step by Step" but I'm having
problems with it.
I've already filled my dataset (DsInfo) with a datatable ("RootInfo")
Dim cm As System.Windows.Forms.CurrencyManager
cm = Me.BindingContext(Me.DsInfo, "RootInfo")
The second line here is giving me a compile error:
C:\Projects\Code\Uniway\ServiceCenter\frmMain.vb(1082): Option Strict On
disallows implicit conversions from
'System.Windows.Forms.BindingManagerBase' to
'System.Windows.Forms.CurrencyManager'.
I've also tried to explicitly convert it using the CType function. It
compiles then, but has an unhandled exception. Any ideas?
Thanks,
Blake
an example in the Microsoft Press book "ADO.NET Step by Step" but I'm having
problems with it.
I've already filled my dataset (DsInfo) with a datatable ("RootInfo")
Dim cm As System.Windows.Forms.CurrencyManager
cm = Me.BindingContext(Me.DsInfo, "RootInfo")
The second line here is giving me a compile error:
C:\Projects\Code\Uniway\ServiceCenter\frmMain.vb(1082): Option Strict On
disallows implicit conversions from
'System.Windows.Forms.BindingManagerBase' to
'System.Windows.Forms.CurrencyManager'.
I've also tried to explicitly convert it using the CType function. It
compiles then, but has an unhandled exception. Any ideas?
Thanks,
Blake