|
-
May 13th, 2004, 11:56 PM
#1
Thread Starter
Fanatic Member
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
-
May 14th, 2004, 11:51 AM
#2
Sleep mode
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 .
-
May 14th, 2004, 01:12 PM
#3
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|