"Joe" <jo*****@tlen.plwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
On Mar 23, 5:04 pm, "RobinS" <Rob...@NoSpam.yah.nonewrote:
>"Joe" <joe1...@tlen.plwrote in message
news:11**********************@e65g2000hsc.googleg roups.com...
On Mar 20, 3:43 pm, Spam Catcher <spamhoney...@rogers.comwrote:
"Joe" <joe1...@tlen.plwrote in news:1174422087.617334.162720
@b75g2000hsg.googlegroups.com:
does anyone have any clue??
>You can set the DataSource to nothing. I believe that clears the
grid.
unfortunately, it did not :(
Is your DataGridView bound to a data source? or are you filling it
manually?
Robin S.
data source!! I never use it "manually". I just (after all day) want
to clear this window out...
Assuming you're using .Net 2.0, try using a Binding Source.
Dim myBindingSource as BindingSource = New BindingSource()
myBindingSource.DataSource = myDataSet.Tables(0)
myDataGridView.DataSource = myBindingSource
Then see what happens when you clear your dataset (set it to nothing). The
BindingSource handles the link between the data and the display, it's kind
of like lubrication between gears. It responds immediately to changes in
the data source.
Robin S.