
Signature
Arne Garvander
Certified Geek
Professional Data Dude
If I remove
HistoryGrid.Parent = Me
My original problem goes away.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
> I have a dataset with one table, which I build from scratch (not using SQL
> server).
[quoted text clipped - 7 lines]
> HistoryGrid.AutoGenerateColumns = True
> HistoryGrid.DataSource = table
Jack Jackson - 21 Jan 2008 19:51 GMT
>If I remove
>HistoryGrid.Parent = Me
>My original problem goes away.
Try "Me.Controls.Add(HistoryGrid)" instead of "HistoryGrid.Parent =
Me".
The documentation says that setting a control's Parent property to
Nothing removes it from the parent's Controls collection, but doesn't
mention setting Parent. Maybe doing it that way doesn't work.