grid implemenation issue

S

Sam

Hi,
I have two grids bound to different datasets.
When a row of the first grid is selected, the dataset of the second
grid is updated regarding the data of the selected row.
It works fine. However when a new row is selected in the first grid
(that is a row that we are about to add by filling in information), I
would like the second grid to be set to nothing and have 0 records (or
just on blank row in which we could add stuff)

I've tried:
dataset of grid2 = nothing
but it does not work. How can I do that ?

thx
 
C

Cor Ligthert

Hi Sam,

Not so quick,

Probably you are looking for "clear"

I hope this helps,

Cor
 
S

Sam

cool dude. it works, although to get exactely what i wanted i had to do
:
m_dsFields.Tables(0).Rows.Clear()

thx a lot !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top