I have button TsmRefresh it must be update data from selling table which is in sql server database
when i press this button in datagridview adding same data which is already in datagridview. everything is double. its make same evry press in this button.
Im using c# what is problem can anybody say to me?
i dont use outer join
i have columns (ID, ProductID(idont use this), BarCode, ProductName, Price, SelfPrice, PriceWithOutAWD, Comment, DateTime, Quantity) i use primary key only ID
Code |

Suthish NairRank #92 · 22.8K reputationPosted Oct 24, 2010, 10:00 AM EDT
refer link another way: DataGridView
Irakli Lekishvili15 reputationPosted Oct 24, 2010, 11:13 AM EDT
i have primary key only on ID
please see this is picture of my table
http://img697.imageshack.us/img697/5158/sellings.jpg
thanks