H
henk
Hi,
I have a vb.net application where I need multiple "Lookup windows".
I could make 10 lookup window with each there own datagrid and table
style, but I want to do it Nice.
I was thinking about 1 Lookupwindow with 2 parameters (SQL and the
tablestyle).
The problem is: When calling the lookup window, it works ok. But when
calling another Lookup window the table style won't update. (it still
uses the first one).
Anybody an idea?
Thanks in advance.
I use:
dsLookup.Clear()
cCommand = frmMain.GlcCommand
' create a data adapter
Dim daStudy As OleDbDataAdapter = New
OleDbDataAdapter(cCommand, frmMain.myConnection)
dsLookup.Clear()
dsLookup.DataSetName = frmMain.GlcTS
'daStudy.Update(dsLookup, frmMain.GlcTS)
' fill dataset
daStudy.TableMappings.Clear()
daStudy.Fill(dsLookup, frmMain.GlcTS)
I have a vb.net application where I need multiple "Lookup windows".
I could make 10 lookup window with each there own datagrid and table
style, but I want to do it Nice.
I was thinking about 1 Lookupwindow with 2 parameters (SQL and the
tablestyle).
The problem is: When calling the lookup window, it works ok. But when
calling another Lookup window the table style won't update. (it still
uses the first one).
Anybody an idea?
Thanks in advance.
I use:
dsLookup.Clear()
cCommand = frmMain.GlcCommand
' create a data adapter
Dim daStudy As OleDbDataAdapter = New
OleDbDataAdapter(cCommand, frmMain.myConnection)
dsLookup.Clear()
dsLookup.DataSetName = frmMain.GlcTS
'daStudy.Update(dsLookup, frmMain.GlcTS)
' fill dataset
daStudy.TableMappings.Clear()
daStudy.Fill(dsLookup, frmMain.GlcTS)