[RESOLVED] Strange behaviour Datagrid
Hi
i have a form with a datagrid on wich a user can select a row. below this grid I show the detail in textboxes.
these texboxes are displayed on a tabcontrol.
this Tabcontrol does also have a second tab. On this Itab want to display additional info of the selected row.
so far so good.
when using this sql query
it goes wrong (when i use a query tool there are results!)
The dg is empty.
but when i use
then the result are shown in the dg as I expect.
The difference is the Join. but is this the problem.
I'm out and confused
someone, any ideas?
thx
Hi
i have a form with a datagrid on wich a user can select a row. below this grid I show the detail in textboxes.
these texboxes are displayed on a tabcontrol.
this Tabcontrol does also have a second tab. On this Itab want to display additional info of the selected row.
so far so good.
when using this sql query
VB.NET:
[SIZE=2]
daCursFin = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] SqlClient.SqlDataAdapter("SELECT LesGeld, Betaald, Betaaldatum, CurStudentenKorting, CurACardKorting," _
& " CurAanbrengkorting, CurOverigeKorting, Locatie, Weekdag, DatumBetAangemaakt, TBetalingen.BetalingsKenmerk" _
& " FROM TBetalingen INNER JOIN TInschrijving ON TBetalingen.Inschrijvingsid = TInschrijving.InschrijvingsID" _
& " WHERE CursistId = '" & strCursistID & "'", strCnn)
[/SIZE]
it goes wrong (when i use a query tool there are results!)
The dg is empty.
but when i use
VB.NET:
[SIZE=2]
daCursFin = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] SqlClient.SqlDataAdapter("SELECT LesGeld, Betaald, Betaaldatum, CurStudentenKorting, CurACardKorting," _
& " CurAanbrengkorting, CurOverigeKorting, Locatie, Weekdag, DatumBetAangemaakt, TBetalingen.BetalingsKenmerk" _
& " FROM TBetalingen " _
& " WHERE CursistId = '" & strCursistID & "'", strCnn)
[/SIZE]
then the result are shown in the dg as I expect.
The difference is the Join. but is this the problem.
I'm out and confused
someone, any ideas?
thx
Last edited: