What is the best way to refresh a datagridview control

R

Rob Dob

Hi,

I have a tabcontrol with several tabs, each tab contains a datagridview
control, and displays data from the same dataset, the only difference being
the "where" clause of the select statement. As the user changes the value
of a particular field the record will move from tab to tab, based upon the
where condition. As each records criteria changes the record will leave one
datagridview control and become part of the other one. Currently I am
accomplishing this by: Using the Fill method of the DataAdapter that is
bound to the two BindingSource's ( the one from where the record was updated
and the other to where the record will be moving to )

Is there a better way to accomplishing this?

thanks
 
K

Kevin Spencer

I don't believe there's any *other* way to do it, if you're using a DataSet,
etc. In any case, I would say yes, it's the best way. The Fill method
doesn't necessarily fetch the entire set of data.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

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

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top