What is the best way to refresh a datagridview control

Discussion in 'ASP .Net Datagrid Control' started by Rob Dob, May 9, 2006.

  1. Rob Dob

    Rob Dob Guest

    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
    Rob Dob, May 9, 2006
    #1
    1. Advertising

  2. 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.

    "Rob Dob" <> wrote in message
    news:...
    > 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
    >
    Kevin Spencer, May 9, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmVldCBEaXN1amE=?=

    How to establish connection of DataGridView Control to National St

    =?Utf-8?B?SmVldCBEaXN1amE=?=, Oct 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    335
    Eliyahu Goldin
    Oct 25, 2006
  2. Jeet Disuja

    How to establish connection of DataGridView Control to Stock Excha

    Jeet Disuja, Oct 25, 2006, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    136
    Brennan Stehling
    Oct 26, 2006
  3. VictorLeo

    User control con caracteristicas del DataGridView

    VictorLeo, Aug 22, 2007, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    1,050
    VictorLeo
    Aug 22, 2007
  4. Jeet Disuja
    Replies:
    0
    Views:
    114
    Jeet Disuja
    Oct 25, 2006
  5. Jeet Disuja
    Replies:
    0
    Views:
    115
    Jeet Disuja
    Oct 25, 2006
Loading...

Share This Page