refresh DataGridView

R

Ryan Liu

Hi,

In the same application, some other form inserted some data to the
database.

To refresh the DataGridView on the form shows those data, I just simple use
Adapter fill the grid again.

//auto-generated code
this.projectTableAdapter.Fill(this.dsPowerCapi.project);

This works, but is this "right" way to do? I feel it is not very elegant.

Thanks,

~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China

http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
R

Ryan Liu

Maybe just added those lines to grid instead of complete reload. I hesitate
to do so since I need add more code.

Thanks,
 

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