refresh DataGridView

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
Maybe just added those lines to grid instead of complete reload. I hesitate
to do so since I need add more code.

Thanks,
 
Back
Top