Results 1 to 3 of 3

Thread: Clear dataset then refill

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Clear dataset then refill

    Dear The Expert,
    I am creating a serial communication application by using vb.net, after the data received then they will be proceed and then show on the datagrid, I show them by using below commands:

    mydataset.clear
    mydataadapter.fill(mydataset)

    the above commands will clear all contents in mydataset and then refill them, I think this will takes a lot of resources. is there another way for doing this?

    Thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Other than disposing the dataset and creating new one , I can't think of another way . But , Clear method is absolutely perfect for this matter .

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    You can clear individual datatables in the dataset if that works for you. Might be less intensive if you have a lot of datatables and only need some refreshed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width